Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include Add an lwp_trapframe() interface to re...



details:   https://anonhg.NetBSD.org/src/rev/c766deb5e2bd
branches:  trunk
changeset: 960786:c766deb5e2bd
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Mar 29 01:46:26 2021 +0000

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

diffstat:

 sys/arch/mips/include/frame.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r c44a9fb51d87 -r c766deb5e2bd sys/arch/mips/include/frame.h
--- a/sys/arch/mips/include/frame.h     Mon Mar 29 01:43:18 2021 +0000
+++ b/sys/arch/mips/include/frame.h     Mon Mar 29 01:46:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: frame.h,v 1.11 2021/03/24 05:35:05 simonb Exp $        */
+/*     $NetBSD: frame.h,v 1.12 2021/03/29 01:46:26 simonb Exp $        */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -42,6 +42,8 @@
 #include <sys/signal.h>
 
 void *getframe(struct lwp *, int, int *);
+#define        lwp_trapframe(l)        ((l)->l_md.md_utf)
+
 #if defined(COMPAT_16) || defined(COMPAT_ULTRIX)
 void sendsig_sigcontext(const ksiginfo_t *, const sigset_t *);
 #endif



Home | Main Index | Thread Index | Old Index