Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch add an lwp_trapframe() interface to return an LWP's...



details:   https://anonhg.NetBSD.org/src/rev/9448776c661a
branches:  trunk
changeset: 824665:9448776c661a
user:      chs <chs%NetBSD.org@localhost>
date:      Wed Jun 14 00:40:05 2017 +0000

description:
add an lwp_trapframe() interface to return an LWP's user trapframe.
needed by dtrace.

diffstat:

 sys/arch/amd64/include/frame.h |  3 ++-
 sys/arch/i386/include/frame.h  |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r efb5d30acf9c -r 9448776c661a sys/arch/amd64/include/frame.h
--- a/sys/arch/amd64/include/frame.h    Tue Jun 13 19:13:55 2017 +0000
+++ b/sys/arch/amd64/include/frame.h    Wed Jun 14 00:40:05 2017 +0000
@@ -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 @@
 #ifdef _KERNEL
 struct lwp;
 void buildcontext(struct lwp *, void *, void *);
+#define lwp_trapframe(l)       ((l)->l_md.md_regs)
 #endif
 
 #else  /*      __x86_64__      */
diff -r efb5d30acf9c -r 9448776c661a sys/arch/i386/include/frame.h
--- a/sys/arch/i386/include/frame.h     Tue Jun 13 19:13:55 2017 +0000
+++ b/sys/arch/i386/include/frame.h     Wed Jun 14 00:40:05 2017 +0000
@@ -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 @@
 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_ */



Home | Main Index | Thread Index | Old Index