summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-09-24 22:19:20 +0000
committerjake <jake@FreeBSD.org>2002-09-24 22:19:20 +0000
commit0cde9824233c92fc49126f531e196f594da3c298 (patch)
tree911c0a64483b47900cbd364ab783d0d0e7f862bc /sys/sparc64
parentd376bae4569c42cfa7e3b47c3eee6e5d9cf837e1 (diff)
downloadFreeBSD-src-0cde9824233c92fc49126f531e196f594da3c298.zip
FreeBSD-src-0cde9824233c92fc49126f531e196f594da3c298.tar.gz
Allocate stack space for the trapframe along with the normal register
frame in the save instruction, rather than doing a separate sub.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/exception.S6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/sparc64/sparc64/exception.S b/sys/sparc64/sparc64/exception.S
index 9d54b6e..f07f970 100644
--- a/sys/sparc64/sparc64/exception.S
+++ b/sys/sparc64/sparc64/exception.S
@@ -1119,7 +1119,7 @@ END(tl0_sftrap)
.macro tl1_split
rdpr %wstate, %g1
wrpr %g1, WSTATE_NESTED, %wstate
- save %sp, -CCFSZ, %sp
+ save %sp, -(CCFSZ + TF_SIZEOF), %sp
.endm
.macro tl1_setup type
@@ -2737,8 +2737,6 @@ END(tl0_ret)
* the outs don't need to be saved.
*/
ENTRY(tl1_trap)
- sub %sp, TF_SIZEOF, %sp
-
rdpr %tstate, %l0
rdpr %tpc, %l1
rdpr %tnpc, %l2
@@ -2846,8 +2844,6 @@ END(tl1_trap)
* void tl1_intr(u_int level, u_int mask)
*/
ENTRY(tl1_intr)
- sub %sp, TF_SIZEOF, %sp
-
rdpr %tstate, %l0
rdpr %tpc, %l1
rdpr %tnpc, %l2
OpenPOWER on IntegriCloud