Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/mips/sys Remove the incorrect register shuffle...



details:   https://anonhg.NetBSD.org/src/rev/d23356a6c6fa
branches:  trunk
changeset: 980793:d23356a6c6fa
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Feb 19 08:33:02 2021 +0000

description:
Remove the incorrect register shuffle - we pass SYS___syscall as the
syscall number in v0 and pass all the original __syscall() args in their
original slots/regs.

diffstat:

 lib/libc/arch/mips/sys/__syscall.S |  27 +++------------------------
 1 files changed, 3 insertions(+), 24 deletions(-)

diffs (38 lines):

diff -r ddd3f7fb8304 -r d23356a6c6fa lib/libc/arch/mips/sys/__syscall.S
--- a/lib/libc/arch/mips/sys/__syscall.S        Fri Feb 19 05:34:37 2021 +0000
+++ b/lib/libc/arch/mips/sys/__syscall.S        Fri Feb 19 08:33:02 2021 +0000
@@ -1,31 +1,10 @@
-/*     $NetBSD: __syscall.S,v 1.3 2020/04/18 23:55:51 thorpej Exp $    */
+/*     $NetBSD: __syscall.S,v 1.4 2021/02/19 08:33:02 simonb Exp $     */
 
 #include "SYS.h"
 
-#ifdef __mips_o32
-
 RSYSCALL(__syscall)
 
-#else /* ! __mips_o32 */
-
-LEAF(__syscall)
-        PIC_PROLOGUE(__syscall)
-       move    v0, a0
-       move    a0, a1
-       move    a1, a2
-       move    a2, a3
-       move    a3, a4
-       move    a4, a5
-       move    a5, a6
-       move    a6, a7
-       REG_L   a7, (sp)
-        SYSTRAP(__syscall)
-        bne a3,zero,1f
-        PIC_RETURN()
-1:
-        PIC_TAILCALL(__cerror)
-END(__syscall)
+#ifndef __mips_o32
 STRONG_ALIAS(_syscall,__syscall)
 WEAK_ALIAS(syscall,__syscall)
-
-#endif /* __mips_o32 */
+#endif /* ! __mips_o32 */



Home | Main Index | Thread Index | Old Index