Moved some (gas) macros up so they can be used in more places.

This commit is contained in:
Jake Burkholder 2003-01-24 23:47:46 +00:00
parent afb0573a12
commit 4a3381caae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109810

View File

@ -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