summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/m68k
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-29 15:26:06 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-29 15:26:06 +0000
commite80f02b438304abeb90856b6bcdf3d8819db816b (patch)
tree121984614e88ac37b357cae1e3300ad90911b0c8 /libc/sysdeps/linux/m68k
parent0d05cff64d88deeca3a1e86546a13d912f66eeab (diff)
downloaduClibc-alpine-e80f02b438304abeb90856b6bcdf3d8819db816b.tar.bz2
uClibc-alpine-e80f02b438304abeb90856b6bcdf3d8819db816b.tar.xz
just use the common ptrace version
Diffstat (limited to 'libc/sysdeps/linux/m68k')
-rw-r--r--libc/sysdeps/linux/m68k/Makefile.arch2
-rw-r--r--libc/sysdeps/linux/m68k/ptrace.c39
2 files changed, 1 insertions, 40 deletions
diff --git a/libc/sysdeps/linux/m68k/Makefile.arch b/libc/sysdeps/linux/m68k/Makefile.arch
index a1ded80f2..14ce2e30a 100644
--- a/libc/sysdeps/linux/m68k/Makefile.arch
+++ b/libc/sysdeps/linux/m68k/Makefile.arch
@@ -5,7 +5,7 @@
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#
-CSRC := ptrace.c brk.c __syscall_error.c syscall.c
+CSRC := brk.c __syscall_error.c syscall.c
SSRC := __longjmp.S bsd-_setjmp.S bsd-setjmp.S clone.S setjmp.S vfork.S
diff --git a/libc/sysdeps/linux/m68k/ptrace.c b/libc/sysdeps/linux/m68k/ptrace.c
deleted file mode 100644
index 43487546e..000000000
--- a/libc/sysdeps/linux/m68k/ptrace.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#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;
-}