diff options
-rw-r--r-- | sys/mips/mips/exception.S | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sys/mips/mips/exception.S b/sys/mips/mips/exception.S index fdac5e3..1d511ee 100644 --- a/sys/mips/mips/exception.S +++ b/sys/mips/mips/exception.S @@ -146,19 +146,10 @@ VECTOR_END(MipsTLBMiss) *---------------------------------------------------------------------------- */ MipsDoTLBMiss: -#xxx mips64 unsafe? -#ifndef SMP - lui k1, %hi(_C_LABEL(pcpup)) -#endif #k0 already has BadVA bltz k0, 1f #02: k0<0 -> 1f (kernel fault) srl k0, k0, SEGSHIFT - 2 #03: k0=seg offset (almost) -#xxx mips64 unsafe? -#ifdef SMP GET_CPU_PCPU(k1) -#else - lw k1, %lo(_C_LABEL(pcpup))(k1) -#endif lw k1, PC_SEGBASE(k1) beqz k1, 2f #05: make sure segbase is not null andi k0, k0, 0x7fc #06: k0=seg offset (mask 0x3) @@ -821,12 +812,7 @@ NLEAF(MipsKernTLBInvalidException) sltu k1, k0, k1 beqz k1, 1f nop -#ifdef SMP GET_CPU_PCPU(k1) -#else - lui k1, %hi(_C_LABEL(pcpup)) - lw k1, %lo(_C_LABEL(pcpup))(k1) -#endif lw k1, PC_SEGBASE(k1) # works for single cpu???? beqz k1, _C_LABEL(MipsKernGenException) # seg tab is null nop @@ -917,13 +903,7 @@ NLEAF(MipsUserTLBInvalidException) sltu k1, k0, k1 beqz k1, _C_LABEL(MipsUserGenException) nop -#xxx mips64 unsafe? -#ifdef SMP GET_CPU_PCPU(k1) -#else - lui k1, %hi(_C_LABEL(pcpup)) - lw k1, %lo(_C_LABEL(pcpup))(k1) -#endif lw k1, PC_SEGBASE(k1) # works for single cpu???? beqz k1, _C_LABEL(MipsUserGenException) # seg tab is null nop |