Module Name: src
Committed By: chs
Date: Wed Jun 14 00:40:05 UTC 2017
Modified Files:
src/sys/arch/amd64/include: frame.h
src/sys/arch/i386/include: frame.h
Log Message:
add an lwp_trapframe() interface to return an LWP's user trapframe.
needed by dtrace.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/amd64/include/frame.h
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/i386/include/frame.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amd64/include/frame.h
diff -u src/sys/arch/amd64/include/frame.h:1.17 src/sys/arch/amd64/include/frame.h:1.18
--- src/sys/arch/amd64/include/frame.h:1.17 Thu Feb 20 18:20:39 2014
+++ src/sys/arch/amd64/include/frame.h Wed Jun 14 00:40:05 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: frame.h,v 1.17 2014/02/20 18:20:39 dsl Exp $ */
+/* $NetBSD: frame.h,v 1.18 2017/06/14 00:40:05 chs Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -121,6 +121,7 @@ struct sigframe_siginfo {
#ifdef _KERNEL
struct lwp;
void buildcontext(struct lwp *, void *, void *);
+#define lwp_trapframe(l) ((l)->l_md.md_regs)
#endif
#else /* __x86_64__ */
Index: src/sys/arch/i386/include/frame.h
diff -u src/sys/arch/i386/include/frame.h:1.35 src/sys/arch/i386/include/frame.h:1.36
--- src/sys/arch/i386/include/frame.h:1.35 Sun Feb 19 21:06:11 2012
+++ src/sys/arch/i386/include/frame.h Wed Jun 14 00:40:05 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: frame.h,v 1.35 2012/02/19 21:06:11 rmind Exp $ */
+/* $NetBSD: frame.h,v 1.36 2017/06/14 00:40:05 chs Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -173,6 +173,7 @@ struct sigframe_siginfo {
void *getframe(struct lwp *, int, int *);
void buildcontext(struct lwp *, int, void *, void *);
void sendsig_sigcontext(const ksiginfo_t *, const sigset_t *);
+#define lwp_trapframe(l) ((l)->l_md.md_regs)
#endif
#endif /* _I386_FRAME_H_ */