Displaying 1 result from an estimated 1 matches for "last_syscall".
2011 Jan 29
1
[PATCH] Re: klibc barfs on m68k syscall interface
....21/usr/klibc/arch/m68k/syscall.S 2011-01-29 15:47:09.000000000 +0100
+@@ -11,17 +11,47 @@
+ .globl __syscall_common
+ .type __syscall_common, @function
+ __syscall_common:
+- movem.l %d2-%d6, -(%sp) /* 5 registers saved */
+- movem.l 24(%sp), %d1-%d6
++#if 0
++ /* debugging: define "int32_t last_syscall;" in your code... */
++ move.l %d0, (last_syscall) /* to see which is actually run */
++#endif
++ /*
++ * According to eglibc, separate moves are faster than movem;
++ * speed is important and this code is not duplicated anyway,
++ * so we do the same here. We use %a1 as scratch register fo...