linux-mips
[Top] [All Lists]

scall_n32.S register saves

To: "Ralf Baechle" <ralf@linux-mips.org>
Subject: scall_n32.S register saves
From: "Kip Walker" <kwalker@broadcom.com>
Date: Fri, 07 Mar 2003 11:29:34 -0800
Cc: linux-mips@linux-mips.org
Organization: Broadcom Corp. BPBU
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
If O32 is enabled, handle_sysn32 shouldn't have to SAVE_SOME and STI...

Kip

Index: arch/mips64/kernel/scall_n32.S
===================================================================
RCS file: /home/cvs/linux/arch/mips64/kernel/scall_n32.S,v
retrieving revision 1.2.2.8
diff -u -r1.2.2.8 scall_n32.S
--- arch/mips64/kernel/scall_n32.S      7 Mar 2003 01:22:48 -0000      
1.2.2.8
+++ arch/mips64/kernel/scall_n32.S      7 Mar 2003 19:27:50 -0000
@@ -29,6 +29,12 @@
 
        .align  5
 NESTED(handle_sysn32, PT_SIZE, sp)
+#ifndef CONFIG_MIPS32_O32
+       .set    noat
+       SAVE_SOME
+       STI
+       .set    at
+#endif
        ld      t1, PT_EPC(sp)          # skip syscall on return
 
        subu    t0, v0, __NR_N32_Linux  # check syscall number


<Prev in Thread] Current Thread [Next in Thread>
  • scall_n32.S register saves, Kip Walker <=