diff options
author | Philip Blundell <philb@gnu.org> | 2001-09-18 10:02:37 +0000 |
---|---|---|
committer | Phil Blundell <pb@gcc.gnu.org> | 2001-09-18 10:02:37 +0000 |
commit | d71ebc326b4ae6bdec7bce1402cf69e64202b1b2 (patch) | |
tree | d0d53ca29c00507fee519c296d50e7556ea3faa5 /gcc/config/arm/lib1funcs.asm | |
parent | a45ea23b3d3a17932ded215c0192d5c54fd62efa (diff) | |
download | gcc-d71ebc326b4ae6bdec7bce1402cf69e64202b1b2.zip gcc-d71ebc326b4ae6bdec7bce1402cf69e64202b1b2.tar.gz gcc-d71ebc326b4ae6bdec7bce1402cf69e64202b1b2.tar.bz2 |
lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel header files.
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
Diffstat (limited to 'gcc/config/arm/lib1funcs.asm')
-rw-r--r-- | gcc/config/arm/lib1funcs.asm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/config/arm/lib1funcs.asm b/gcc/config/arm/lib1funcs.asm index 36f121e..ec706ec 100644 --- a/gcc/config/arm/lib1funcs.asm +++ b/gcc/config/arm/lib1funcs.asm @@ -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} |