Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/include Add md_get_sp() for MI stack frame...



details:   https://anonhg.NetBSD.org/src/rev/ea0ccdeaa0a4
branches:  trunk
changeset: 772726:ea0ccdeaa0a4
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Sat Jan 14 17:31:09 2012 +0000

description:
Add md_get_sp() for MI stack frame manipulation. Note that NetBSD/usermode
only works on decending stacks for now!

diffstat:

 sys/arch/usermode/include/machdep.h |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (21 lines):

diff -r 64ba4c332cdb -r ea0ccdeaa0a4 sys/arch/usermode/include/machdep.h
--- a/sys/arch/usermode/include/machdep.h       Sat Jan 14 16:09:19 2012 +0000
+++ b/sys/arch/usermode/include/machdep.h       Sat Jan 14 17:31:09 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.h,v 1.7 2012/01/03 10:53:46 reinoud Exp $ */
+/* $NetBSD: machdep.h,v 1.8 2012/01/14 17:31:09 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Reinoud Zandijk <reinoud%netbsd.org@localhost>
@@ -36,10 +36,7 @@
 void   md_syscall_inc_pc(ucontext_t *ucp, uint32_t opcode);
 void   md_syscall_dec_pc(ucontext_t *ucp, uint32_t opcode);
 register_t md_get_pc(ucontext_t *ucp);
+register_t md_get_sp(ucontext_t *ucp);
 
 /* handlers */
 void   syscall(void);
-void   pagefault(void);
-
-/* signal stack */
-stack_t *usermode_signal_stack(void);



Home | Main Index | Thread Index | Old Index