From 0cde9824233c92fc49126f531e196f594da3c298 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 24 Sep 2002 22:19:20 +0000 Subject: Allocate stack space for the trapframe along with the normal register frame in the save instruction, rather than doing a separate sub. --- sys/sparc64/sparc64/exception.S | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/sparc64') 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 -- cgit v1.1