summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-01-24 23:47:46 +0000
committerjake <jake@FreeBSD.org>2003-01-24 23:47:46 +0000
commit980d4f44b4d46c68fa0b041b06457e6ff54920ee (patch)
tree3008220d1bf5b3dc4cc5695308100ae8b47663f9 /sys
parent2d948f2956bcc5f4e63deac3c13a5910562bcdbd (diff)
downloadFreeBSD-src-980d4f44b4d46c68fa0b041b06457e6ff54920ee.zip
FreeBSD-src-980d4f44b4d46c68fa0b041b06457e6ff54920ee.tar.gz
Moved some (gas) macros up so they can be used in more places.
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/sparc64/exception.S50
1 files changed, 25 insertions, 25 deletions
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
OpenPOWER on IntegriCloud