From 82a975f2f2671f0fb54ccc56d3cc621dad8b645b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 15 Nov 2002 14:12:12 +0000 Subject: This draws from an old patch by David Blythe for the now-dead unified syscall interface. I reworked his old patch considerably and cleaned up his version of bits/syscalls.h with some sneaky macro magic. And I implemented a powerpc correct version of pread/pwrite -Erik --- libc/sysdeps/linux/powerpc/__uClibc_syscall.S | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libc/sysdeps/linux/powerpc/__uClibc_syscall.S (limited to 'libc/sysdeps/linux/powerpc/__uClibc_syscall.S') diff --git a/libc/sysdeps/linux/powerpc/__uClibc_syscall.S b/libc/sysdeps/linux/powerpc/__uClibc_syscall.S new file mode 100644 index 000000000..09bfb89cc --- /dev/null +++ b/libc/sysdeps/linux/powerpc/__uClibc_syscall.S @@ -0,0 +1,14 @@ +.section ".text" + .align 2 +.globl __uClibc_syscall + .type __uClibc_syscall,@function +__uClibc_syscall: +.Lsize: + sc + bnslr +#ifdef __PIC__ + b __syscall_error@plt +#else + b __syscall_error +#endif + .size __uClibc_syscall,.Lsize-__uClibc_syscall -- cgit v1.2.3