aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/contrib/opensolaris/uts/powerpc
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2016-09-24 21:40:14 +0000
committerMark Johnston <markj@FreeBSD.org>2016-09-24 21:40:14 +0000
commit9e579a58c364cb29e76e8e4c630df63e97d42780 (patch)
tree484d7299a69ad5f92d520039496304c00f5a320b /sys/cddl/contrib/opensolaris/uts/powerpc
parent788f3c06f6c3a552f9a8ae7ec705591f7ba36f48 (diff)
downloadsrc-9e579a58c364cb29e76e8e4c630df63e97d42780.tar.gz
src-9e579a58c364cb29e76e8e4c630df63e97d42780.zip
Move implementations of uread() and uwrite() to the illumos compat layer.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=306304
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/powerpc')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
index e8dd684a4530..b0fc5816c5e3 100644
--- a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
+++ b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
@@ -44,32 +44,6 @@
#define OP_RA(x) (((x) & 0x001F0000) >> 16)
#define OP_RB(x) (((x) & 0x0000F100) >> 11)
-static int
-uread(proc_t *p, void *kaddr, size_t len, uintptr_t uaddr)
-{
- ssize_t n;
-
- PHOLD(p);
- n = proc_readmem(curthread, p, uaddr, kaddr, len);
- PRELE(p);
- if (n <= 0 || n < len)
- return (ENOMEM);
- return (0);
-}
-
-static int
-uwrite(proc_t *p, void *kaddr, size_t len, uintptr_t uaddr)
-{
- ssize_t n;
-
- PHOLD(p);
- n = proc_writemem(curthread, p, uaddr, kaddr, len);
- PRELE(p);
- if (n <= 0 || n < len)
- return (ENOMEM);
- return (0);
-}
-
int
fasttrap_tracepoint_install(proc_t *p, fasttrap_tracepoint_t *tp)
{