Switch x86 syscall stubs over to the ENTER/END style of the ARM stubs.
Also update the x86 asm.h to support this; we need it for libm assembler
anyway.
Also clean up the _FBSDID hack in <sys/cdefs.h>.
Change-Id: Iababd977b8110ec022bf7c93f4d62ece47630e7c
diff --git a/libc/arch-x86/syscalls/sched_getscheduler.S b/libc/arch-x86/syscalls/sched_getscheduler.S
index aaa5f8c..2a6c8f7 100644
--- a/libc/arch-x86/syscalls/sched_getscheduler.S
+++ b/libc/arch-x86/syscalls/sched_getscheduler.S
@@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
+#include <machine/asm.h>
#include <sys/linux-syscalls.h>
- .text
- .type sched_getscheduler, @function
- .globl sched_getscheduler
- .align 4
-
-sched_getscheduler:
+ENTRY(sched_getscheduler)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_sched_getscheduler, %eax
@@ -21,3 +17,4 @@
1:
popl %ebx
ret
+END(sched_getscheduler)