summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-02 16:13:41 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-02 16:13:41 +0000
commit16f4df8b52de1df0f810e157d9711caa75115e28 (patch)
treefa121625baaf7bbe85d08718022c9465e43f11fb /libc/sysdeps
parent5fe51654d35ae05858a0d1d94e6783a98f09fe47 (diff)
Allow sources using syscalls to be IMA compiled on x86
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/i386/bits/syscalls.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/i386/bits/syscalls.h b/libc/sysdeps/linux/i386/bits/syscalls.h
index 944fb734a..e9f9e7885 100644
--- a/libc/sysdeps/linux/i386/bits/syscalls.h
+++ b/libc/sysdeps/linux/i386/bits/syscalls.h
@@ -30,6 +30,8 @@ asm (".L__X'%ebx = 1\n\t"
".L__X'%edi = 3\n\t"
".L__X'%ebp = 3\n\t"
".L__X'%esp = 3\n\t"
+ ".ifndef _BITS_SYSCALLS_ASM\n\t"
+ ".set _BITS_SYSCALLS_ASM,1\n\t"
".macro bpushl name reg\n\t"
".if 1 - \\name\n\t"
".if 2 - \\name\n\t"
@@ -54,7 +56,8 @@ asm (".L__X'%ebx = 1\n\t"
"movl \\reg, %ebx\n\t"
".endif\n\t"
".endif\n\t"
- ".endm\n\t");
+ ".endm\n\t"
+ ".endif\n\t");
#undef _syscall0