diff options
| author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 16:17:32 +0000 |
|---|---|---|
| committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 16:17:32 +0000 |
| commit | 3d17dd647a04ad0837b063a610520fb6defb2d8d (patch) | |
| tree | ca961f6290a7abc8dcb5138f336d2cbce92e82a6 /libc/sysdeps/linux/hppa/syscall.c | |
| parent | 43ee769f540704ccfc4e2a12ba11ed4b6eece196 (diff) | |
| download | uClibc-alpine-3d17dd647a04ad0837b063a610520fb6defb2d8d.tar.bz2 uClibc-alpine-3d17dd647a04ad0837b063a610520fb6defb2d8d.tar.xz | |
Synch libc nios/xtensa/v850/h8300/cris/x86_64/ia64/hppa/i382/nios2/frv/avr32 specific with trunk
Diffstat (limited to 'libc/sysdeps/linux/hppa/syscall.c')
| -rw-r--r-- | libc/sysdeps/linux/hppa/syscall.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/hppa/syscall.c b/libc/sysdeps/linux/hppa/syscall.c index 87dff0f34..04e80b2b2 100644 --- a/libc/sysdeps/linux/hppa/syscall.c +++ b/libc/sysdeps/linux/hppa/syscall.c @@ -19,6 +19,7 @@ #include <stdarg.h> #include <errno.h> #include <sys/syscall.h> +#include <unistd.h> /* HPPA implements syscall() in 'C'; the assembler version would typically be in syscall.S. Also note that we have INLINE_SYSCALL, @@ -44,9 +45,9 @@ syscall (long int __sysno, ...) va_end (args); { - register unsigned long int __res asm("r28"); + register unsigned long int __res __asm__("r28"); K_LOAD_ARGS_6 (arg0, arg1, arg2, arg3, arg4, arg5) - asm volatile (K_STW_ASM_PIC + __asm__ __volatile__ (K_STW_ASM_PIC " ble 0x100(%%sr2, %%r0) \n" " copy %1, %%r20 \n" K_LDW_ASM_PIC |
