summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1999-06-22 17:56:06 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1999-06-22 17:56:06 +0000
commit58610e91bc8bfc50fe90df3e427e0d5b9cabf328 (patch)
tree66e7f8d4d1819b144ccbc699b103e6e59b3002fb /sys
parent6f9c73e8c1346b06cc35c28c90c377958fa3026d (diff)
allow stack tracing up to the very bottom of the stack; also tabs vs spaces
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/hppa/locore.S25
1 files changed, 11 insertions, 14 deletions
diff --git a/sys/arch/hppa/hppa/locore.S b/sys/arch/hppa/hppa/locore.S
index 526baadd9f6..dcd51acbfe2 100644
--- a/sys/arch/hppa/hppa/locore.S
+++ b/sys/arch/hppa/hppa/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.12 1999/06/22 17:46:38 mickey Exp $ */
+/* $OpenBSD: locore.S,v 1.13 1999/06/22 17:56:05 mickey Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -139,11 +139,6 @@ ENTRY($start)
ldo R%$global$(dp),dp
/*
- * clear GCC frame pointer to avoid back-tracing off the end
- */
- copy r0,r4
-
- /*
* kernel stack lives here (arg3 is esym)
* arg0 will be available space for hppa_init()
*/
@@ -185,29 +180,31 @@ $qisnowon
* load address of interrupt vector table
*/
ldil L%$ivaaddr,t2
- ldo R%$ivaaddr(t2),t2
- mtctl t2,iva
+ ldo R%$ivaaddr(t2),t2
+ mtctl t2,iva
/*
* Create a stack frame for us to call C with. Clear out the previous
* sp marker to mark that this is the first frame on the stack.
*/
- ldo TF_SIZE(sp),sp
- stw r0,FM_PSP(sp)
+ copy sp, t1
+ stwm r0, FM_SIZE(sp)
+ copy sp, r3
+ stwm t1, FM_SIZE(sp)
/*
* disable all coprocessors
*/
- mtctl r0,ccr
+ mtctl r0, ccr
/*
* call C routine hppa_init() to initialize VM
*/
.import hppa_init, code
- ldil L%hppa_init,r1
- ldo R%hppa_init(r1),r1
+ ldil L%hppa_init, r1
+ ldo R%hppa_init(r1), r1
.call
- blr r0,rp
+ blr r0, rp
bv,n (r1)
nop