Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/nds32/syscall_extra.h')
-rw-r--r--libgloss/nds32/syscall_extra.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/libgloss/nds32/syscall_extra.h b/libgloss/nds32/syscall_extra.h
index 73d36b973..7af4a4550 100644
--- a/libgloss/nds32/syscall_extra.h
+++ b/libgloss/nds32/syscall_extra.h
@@ -51,14 +51,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
If there is something wrong, make syscall to get `SYS_geterr' to get
error code to see what exactly happens and store it in errno . */
syscall \num /* Make syscall with arg=`\num'. */
- addi $r1, $r0, 1
- bnez $r1, 1f /* Branch if success. */
- syscall SYS_geterr /* There is something wrong. */
- s.w $r0, errno /* Store error code into errno. */
- move $r0, -1
-1:
- ret
- .size \name, .-\name
+ j __syscall_error_handler
+ .size \name, .-\name
.endm
#endif /* _SYSCALL_EXTRA_H */