add an lwp_trapframe() interface to return an LWP's user trapframe.

needed by dtrace.
This commit is contained in:
chs 2017-06-14 00:40:05 +00:00
parent 4b70fd126d
commit 0944f2f467
2 changed files with 4 additions and 2 deletions

View File

@ -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__ */

View File

@ -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_ */