summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/__getpriority.S
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-02-06 17:08:15 -0800
committerElliott Hughes <enh@google.com>2013-02-06 17:08:15 -0800
commit7582a9c119a4e4d0c306996b2513205889a9fb6c (patch)
tree44c9126902c7477c5f260323a07a775725c22f55 /libc/arch-x86/syscalls/__getpriority.S
parentd32fdbaf03f688497adbec885e85c0a69f7a4542 (diff)
downloadbionic-7582a9c119a4e4d0c306996b2513205889a9fb6c.zip
bionic-7582a9c119a4e4d0c306996b2513205889a9fb6c.tar.gz
bionic-7582a9c119a4e4d0c306996b2513205889a9fb6c.tar.bz2
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
Diffstat (limited to 'libc/arch-x86/syscalls/__getpriority.S')
-rw-r--r--libc/arch-x86/syscalls/__getpriority.S9
1 files changed, 3 insertions, 6 deletions
diff --git a/libc/arch-x86/syscalls/__getpriority.S b/libc/arch-x86/syscalls/__getpriority.S
index 08503d8..a015127 100644
--- a/libc/arch-x86/syscalls/__getpriority.S
+++ b/libc/arch-x86/syscalls/__getpriority.S
@@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
+#include <machine/asm.h>
#include <sys/linux-syscalls.h>
- .text
- .type __getpriority, @function
- .globl __getpriority
- .align 4
-
-__getpriority:
+ENTRY(__getpriority)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@@ -24,3 +20,4 @@ __getpriority:
popl %ecx
popl %ebx
ret
+END(__getpriority)