Moved some (gas) macros up so they can be used in more places.
This commit is contained in:
parent
afb0573a12
commit
4a3381caae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user