From 980d4f44b4d46c68fa0b041b06457e6ff54920ee Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 24 Jan 2003 23:47:46 +0000 Subject: Moved some (gas) macros up so they can be used in more places. --- sys/sparc64/sparc64/exception.S | 50 ++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'sys') diff --git a/sys/sparc64/sparc64/exception.S b/sys/sparc64/sparc64/exception.S index 7cb77bf..c0614dd 100644 --- a/sys/sparc64/sparc64/exception.S +++ b/sys/sparc64/sparc64/exception.S @@ -457,6 +457,31 @@ END(rsf_fatal) .endr .endm + .macro tl1_split + rdpr %wstate, %g1 + wrpr %g1, WSTATE_NESTED, %wstate + save %sp, -(CCFSZ + TF_SIZEOF), %sp + .endm + + .macro tl1_setup type + tl1_split + clr %o1 + set trap, %o2 + b %xcc, tl1_trap + mov \type | T_KERNEL, %o0 + .endm + + .macro tl1_gen type + tl1_setup \type + .align 32 + .endm + + .macro tl1_reserved count + .rept \count + tl1_gen T_RESERVED + .endr + .endm + .macro tl0_fp_restore wr %g0, FPRS_FEF, %fprs wr %g0, ASI_BLK_S, %asi @@ -1126,31 +1151,6 @@ END(tl0_sftrap) .align 32 .endm - .macro tl1_split - rdpr %wstate, %g1 - wrpr %g1, WSTATE_NESTED, %wstate - save %sp, -(CCFSZ + TF_SIZEOF), %sp - .endm - - .macro tl1_setup type - tl1_split - clr %o1 - set trap, %o2 - b %xcc, tl1_trap - mov \type | T_KERNEL, %o0 - .endm - - .macro tl1_gen type - tl1_setup \type - .align 32 - .endm - - .macro tl1_reserved count - .rept \count - tl1_gen T_RESERVED - .endr - .endm - .macro tl1_insn_excptn wrpr %g0, PSTATE_ALT, %pstate wr %g0, ASI_IMMU, %asi -- cgit v1.1