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/5bdc6bde5617
branches:  trunk
changeset: 954098:5bdc6bde5617
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 344aa08ffd28 -r 5bdc6bde5617 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