aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-07-27 19:50:16 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-07-27 19:50:16 +0000
commit00f18569054f0a7f0309980cd466ff5bbf972bfb (patch)
treed7aca78a9dc9766080ed3383eace0e02c3a80714 /sys/powerpc
parent57b16b0882920a14dcc6035fa0d7f2d708120787 (diff)
Notes
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/aim/trap.c5
-rw-r--r--sys/powerpc/powerpc/trap.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c
index 7d3deba8a8ab..527e9fb93b57 100644
--- a/sys/powerpc/aim/trap.c
+++ b/sys/powerpc/aim/trap.c
@@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$");
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/pioctl.h>
+#include <sys/ptrace.h>
#include <sys/reboot.h>
#include <sys/syscall.h>
#include <sys/sysent.h>
@@ -420,6 +421,8 @@ syscall(struct trapframe *frame)
STOPEVENT(p, S_SCE, narg);
+ PTRACESTOP_SC(p, td, S_PT_SCE);
+
error = (*callp->sy_call)(td, params);
CTR3(KTR_SYSC, "syscall: p=%s %s ret=%x", p->p_comm,
@@ -476,6 +479,8 @@ syscall(struct trapframe *frame)
* Does the comment in the i386 code about errno apply here?
*/
STOPEVENT(p, S_SCX, code);
+
+ PTRACESTOP_SC(p, td, S_PT_SCX);
WITNESS_WARN(WARN_PANIC, NULL, "System call %s returning",
(code >= 0 && code < SYS_MAXSYSCALL) ? syscallnames[code] : "???");
diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c
index 7d3deba8a8ab..527e9fb93b57 100644
--- a/sys/powerpc/powerpc/trap.c
+++ b/sys/powerpc/powerpc/trap.c
@@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$");
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/pioctl.h>
+#include <sys/ptrace.h>
#include <sys/reboot.h>
#include <sys/syscall.h>
#include <sys/sysent.h>
@@ -420,6 +421,8 @@ syscall(struct trapframe *frame)
STOPEVENT(p, S_SCE, narg);
+ PTRACESTOP_SC(p, td, S_PT_SCE);
+
error = (*callp->sy_call)(td, params);
CTR3(KTR_SYSC, "syscall: p=%s %s ret=%x", p->p_comm,
@@ -476,6 +479,8 @@ syscall(struct trapframe *frame)
* Does the comment in the i386 code about errno apply here?
*/
STOPEVENT(p, S_SCX, code);
+
+ PTRACESTOP_SC(p, td, S_PT_SCX);
WITNESS_WARN(WARN_PANIC, NULL, "System call %s returning",
(code >= 0 && code < SYS_MAXSYSCALL) ? syscallnames[code] : "???");