diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-28 00:54:02 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-28 00:54:02 +0000 |
commit | 5eb1fae2a97ffc88d136502ace050662e57ef34a (patch) | |
tree | df1087921ff9a88aa8a47ddfd55dc15a793fec56 /libc/sysdeps/linux/m68k/ptrace.c | |
parent | dc0e95c67d350ca9e950abb5f75a63833380af9f (diff) | |
download | uClibc-alpine-5eb1fae2a97ffc88d136502ace050662e57ef34a.tar.bz2 uClibc-alpine-5eb1fae2a97ffc88d136502ace050662e57ef34a.tar.xz |
Merge from trunk.
Diffstat (limited to 'libc/sysdeps/linux/m68k/ptrace.c')
-rw-r--r-- | libc/sysdeps/linux/m68k/ptrace.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/libc/sysdeps/linux/m68k/ptrace.c b/libc/sysdeps/linux/m68k/ptrace.c deleted file mode 100644 index e595a6ecd..000000000 --- a/libc/sysdeps/linux/m68k/ptrace.c +++ /dev/null @@ -1,34 +0,0 @@ - -#include <errno.h> -#include <asm/ptrace.h> -#include <sys/syscall.h> - -int -ptrace(int request, int pid, int addr, int data) -{ - long ret; - long res; - if (request > 0 && request < 4) data = (int)&ret; - - - __asm__ volatile ("movel %1,%/d0\n\t" - "movel %2,%/d1\n\t" - "movel %3,%/d2\n\t" - "movel %4,%/d3\n\t" - "movel %5,%/d4\n\t" - "trap #0\n\t" - "movel %/d0,%0" - :"=g" (res) - :"i" (__NR_ptrace), "g" (request), "g" (pid), - "g" (addr), "g" (data) : "%d0", "%d1", "%d2", "%d3", "%d4"); - - if (res >= 0) { - if (request > 0 && request < 4) { - __set_errno(0); - return (ret); - } - return (int) res; - } - __set_errno(-res); - return -1; -} |