Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Set the frame pointer of newly created an...



details:   https://anonhg.NetBSD.org/src/rev/4d4f38177461
branches:  trunk
changeset: 752864:4d4f38177461
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Mar 08 14:52:29 2010 +0000

description:
Set the frame pointer of newly created and function changing LWPs to 0
for the benefit of DDB.

diffstat:

 sys/arch/hppa/hppa/vm_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 0375d9e68591 -r 4d4f38177461 sys/arch/hppa/hppa/vm_machdep.c
--- a/sys/arch/hppa/hppa/vm_machdep.c   Mon Mar 08 12:48:31 2010 +0000
+++ b/sys/arch/hppa/hppa/vm_machdep.c   Mon Mar 08 14:52:29 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.40 2010/01/17 08:50:04 skrll Exp $    */
+/*     $NetBSD: vm_machdep.c,v 1.41 2010/03/08 14:52:29 skrll Exp $    */
 
 /*     $OpenBSD: vm_machdep.c,v 1.64 2008/09/30 18:54:26 miod Exp $    */
 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.40 2010/01/17 08:50:04 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.41 2010/03/08 14:52:29 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -159,6 +159,7 @@
        /* lwp_trampoline's frame */
        sp += HPPA_FRAME_SIZE;
 
+       *(register_t *)(sp) = 0;        /* previous frame pointer */
        *(register_t *)(sp + HPPA_FRAME_PSP) = osp;
        *(register_t *)(sp + HPPA_FRAME_CRP) = (register_t)lwp_trampoline;
 
@@ -196,6 +197,7 @@
        /* setfunc_trampoline's frame */
        sp += HPPA_FRAME_SIZE;
 
+       *(register_t *)(sp) = 0;        /* previous frame pointer */
        *(register_t *)(sp + HPPA_FRAME_PSP) = osp;
        *(register_t *)(sp + HPPA_FRAME_CRP) = (register_t)setfunc_trampoline;
 



Home | Main Index | Thread Index | Old Index