2001-09-18 Philip Blundell <philb@gnu.org>
* config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
header files.
From-SVN: r45674
+2001-09-18 Philip Blundell <philb@gnu.org>
+
+ * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
+ header files.
+
2001-09-17 Dale Johannesen <dalej@apple.com>
* config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
#ifdef L_dvmd_lnx
@ GNU/Linux division-by zero handler. Used in place of L_dvmd_tls
-#include <asm/unistd.h>
-
-#define SIGFPE 8 @ cant use <asm/signal.h> as it
- @ contains too much C rubbish
+/* Constants taken from <asm/unistd.h> and <asm/signal.h> */
+#define SIGFPE 8
+#define __NR_SYSCALL_BASE 0x900000
+#define __NR_getpid (__NR_SYSCALL_BASE+ 20)
+#define __NR_kill (__NR_SYSCALL_BASE+ 37)
+
FUNC_START div0
stmfd sp!, {r1, lr}