]> gcc.gnu.org Git - gcc.git/commitdiff
lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel header files.
authorPhilip Blundell <philb@gnu.org>
Tue, 18 Sep 2001 10:02:37 +0000 (10:02 +0000)
committerPhil Blundell <pb@gcc.gnu.org>
Tue, 18 Sep 2001 10:02:37 +0000 (10:02 +0000)
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

gcc/ChangeLog
gcc/config/arm/lib1funcs.asm

index ae11d42cae57da2f2117de8bec1308f67b89c5aa..014f18e9320915f6ebffc76117fd2e262837af40 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 36f121e94aedf9ae1b32a4568ac4b966c7018d18..ec706ece127c717af762a3ae23dd41f81257717d 100644 (file)
@@ -630,10 +630,12 @@ Lover12:
 #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}
This page took 0.091217 seconds and 5 git commands to generate.