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/f7bc3c1b59fc
branches: trunk
changeset: 354364:f7bc3c1b59fc
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 a8af9b06b765 -r f7bc3c1b59fc 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 a8af9b06b765 -r f7bc3c1b59fc 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