Removed unused tl0_syscall.
This commit is contained in:
parent
163afbe0d5
commit
17e0698b5e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105012
@ -2209,90 +2209,6 @@ ENTRY(tl0_trap)
|
||||
add %sp, CCFSZ + SPOFF, %o0
|
||||
END(tl0_trap)
|
||||
|
||||
/*
|
||||
* void tl0_syscall(u_int type)
|
||||
*/
|
||||
ENTRY(tl0_syscall)
|
||||
/*
|
||||
* Force kernel store order.
|
||||
*/
|
||||
wrpr %g0, PSTATE_ALT, %pstate
|
||||
|
||||
rdpr %tstate, %l0
|
||||
rdpr %tpc, %l1
|
||||
rdpr %tnpc, %l2
|
||||
rd %y, %l3
|
||||
rd %fprs, %l4
|
||||
rdpr %wstate, %l5
|
||||
|
||||
#if KTR_COMPILE & KTR_SYSC
|
||||
CATR(KTR_SYSC,
|
||||
"tl0_syscall: td=%p type=%#x pil=%#lx pc=%#lx npc=%#lx sp=%#lx"
|
||||
, %g1, %g2, %g3, 7, 8, 9)
|
||||
ldx [PCPU(CURTHREAD)], %g2
|
||||
stx %g2, [%g1 + KTR_PARM1]
|
||||
stx %o0, [%g1 + KTR_PARM2]
|
||||
rdpr %pil, %g2
|
||||
stx %g2, [%g1 + KTR_PARM3]
|
||||
stx %l1, [%g1 + KTR_PARM4]
|
||||
stx %l2, [%g1 + KTR_PARM5]
|
||||
stx %i6, [%g1 + KTR_PARM6]
|
||||
9:
|
||||
#endif
|
||||
|
||||
and %l5, WSTATE_NORMAL_MASK, %l5
|
||||
sllx %l5, WSTATE_OTHER_SHIFT, %l5
|
||||
wrpr %l5, WSTATE_KERNEL, %wstate
|
||||
rdpr %canrestore, %l6
|
||||
wrpr %l6, 0, %otherwin
|
||||
wrpr %g0, 0, %canrestore
|
||||
|
||||
sub PCB_REG, SPOFF + CCFSZ + TF_SIZEOF, %sp
|
||||
|
||||
stw %o0, [%sp + SPOFF + CCFSZ + TF_TYPE]
|
||||
|
||||
stx %l0, [%sp + SPOFF + CCFSZ + TF_TSTATE]
|
||||
stx %l1, [%sp + SPOFF + CCFSZ + TF_TPC]
|
||||
stx %l2, [%sp + SPOFF + CCFSZ + TF_TNPC]
|
||||
stw %l3, [%sp + SPOFF + CCFSZ + TF_Y]
|
||||
stb %l4, [%sp + SPOFF + CCFSZ + TF_FPRS]
|
||||
stb %l5, [%sp + SPOFF + CCFSZ + TF_WSTATE]
|
||||
|
||||
wr %g0, FPRS_FEF, %fprs
|
||||
stx %fsr, [%sp + SPOFF + CCFSZ + TF_FSR]
|
||||
wr %g0, 0, %fprs
|
||||
|
||||
mov PCB_REG, %l0
|
||||
mov PCPU_REG, %l1
|
||||
wrpr %g0, PSTATE_NORMAL, %pstate
|
||||
|
||||
stx %g1, [%sp + SPOFF + CCFSZ + TF_G1]
|
||||
stx %g2, [%sp + SPOFF + CCFSZ + TF_G2]
|
||||
stx %g3, [%sp + SPOFF + CCFSZ + TF_G3]
|
||||
stx %g4, [%sp + SPOFF + CCFSZ + TF_G4]
|
||||
stx %g5, [%sp + SPOFF + CCFSZ + TF_G5]
|
||||
stx %g6, [%sp + SPOFF + CCFSZ + TF_G6]
|
||||
stx %g7, [%sp + SPOFF + CCFSZ + TF_G7]
|
||||
|
||||
mov %l0, PCB_REG
|
||||
mov %l1, PCPU_REG
|
||||
wrpr %g0, PSTATE_KERNEL, %pstate
|
||||
|
||||
stx %i0, [%sp + SPOFF + CCFSZ + TF_O0]
|
||||
stx %i1, [%sp + SPOFF + CCFSZ + TF_O1]
|
||||
stx %i2, [%sp + SPOFF + CCFSZ + TF_O2]
|
||||
stx %i3, [%sp + SPOFF + CCFSZ + TF_O3]
|
||||
stx %i4, [%sp + SPOFF + CCFSZ + TF_O4]
|
||||
stx %i5, [%sp + SPOFF + CCFSZ + TF_O5]
|
||||
stx %i6, [%sp + SPOFF + CCFSZ + TF_O6]
|
||||
stx %i7, [%sp + SPOFF + CCFSZ + TF_O7]
|
||||
|
||||
call syscall
|
||||
add %sp, CCFSZ + SPOFF, %o0
|
||||
b,a %xcc, tl0_ret
|
||||
nop
|
||||
END(tl0_syscall)
|
||||
|
||||
/*
|
||||
* void tl0_intr(u_int level, u_int mask)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user