Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Expose lwp_trapframe for _KEMUSER, e.g....
details: https://anonhg.NetBSD.org/src/rev/91a58a26fc64
branches: trunk
changeset: 353236:91a58a26fc64
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Apr 25 09:01:38 2017 +0000
description:
Expose lwp_trapframe for _KEMUSER, e.g. crash(8)
diffstat:
sys/arch/arm/include/frame.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r bdd825e8271d -r 91a58a26fc64 sys/arch/arm/include/frame.h
--- a/sys/arch/arm/include/frame.h Tue Apr 25 08:46:38 2017 +0000
+++ b/sys/arch/arm/include/frame.h Tue Apr 25 09:01:38 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: frame.h,v 1.18 2013/08/18 05:07:19 matt Exp $ */
+/* $NetBSD: frame.h,v 1.19 2017/04/25 09:01:38 skrll Exp $ */
/*
* Copyright (c) 1994-1997 Mark Brinicombe.
@@ -100,14 +100,16 @@
ucontext_t sf_uc; /* actual saved ucontext */
};
+#if defined(_KERNEL) || defined(_KMEMUSER)
#ifdef _KERNEL
__BEGIN_DECLS
void sendsig_sigcontext(const ksiginfo_t *, const sigset_t *);
void *getframe(struct lwp *, int, int *);
__END_DECLS
-#define lwp_trapframe(l) ((l)->l_md.md_tf)
#define lwp_settrapframe(l, tf) ((l)->l_md.md_tf = (tf))
#endif
+#define lwp_trapframe(l) ((l)->l_md.md_tf)
+#endif /* _KERNEL || _KMEMUSER */
#endif /* _LOCORE */
Home |
Main Index |
Thread Index |
Old Index