]> err.no Git - linux-2.6/blobdiff - include/asm-sparc64/ttable.h
[SPARC64]: Elminate all usage of hard-coded trap globals.
[linux-2.6] / include / asm-sparc64 / ttable.h
index 2784f80094c335202bfd55545be06ae2600ef906..f557db4faf84f58130b53321845df60837e9cddb 100644 (file)
        nop;nop;nop;
        
 #define TRAP_UTRAP(handler,lvl)                                \
-       ldx     [%g6 + TI_UTRAPS], %g1;                 \
-       sethi   %hi(109f), %g7;                         \
-       brz,pn  %g1, utrap;                             \
-        or     %g7, %lo(109f), %g7;                    \
-       ba,pt   %xcc, utrap;                            \
-109:    ldx    [%g1 + handler*8], %g1;                 \
-       ba,pt   %xcc, utrap_ill;                        \
-        mov    lvl, %o1;
+       mov     handler, %g3;                           \
+       ba,pt   %xcc, utrap_trap;                       \
+        mov    lvl, %g4;                               \
+       nop;                                            \
+       nop;                                            \
+       nop;                                            \
+       nop;                                            \
+       nop;
 
 #ifdef CONFIG_SUNOS_EMUL
 #define SUNOS_SYSCALL_TRAP SYSCALL_TRAP(linux_sparc_syscall32, sunos_sys_table)
 #else
 #define SOLARIS_SYSCALL_TRAP TRAP(solaris_syscall)
 #endif
-/* FIXME: Write these actually */      
-#define NETBSD_SYSCALL_TRAP TRAP(netbsd_syscall)
 #define BREAKPOINT_TRAP TRAP(breakpoint_trap)
 
 #define TRAP_IRQ(routine, level)                       \