PERFORCE change 136258 for review
Randall R. Stewart
rrs at FreeBSD.org
Tue Feb 26 15:19:51 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=136258
Change 136258 by rrs at rrs-mips2-jnpr on 2008/02/26 15:19:26
Lops off the status.
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/mips/psraccess.S#5 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/mips/psraccess.S#5 (text+ko) ====
@@ -133,7 +133,7 @@
#ifdef TARGET_OCTEON
.set mips64
.word 0x041626000 #di v0
-
+ and v0, SR_INT_ENAB # return old interrupt enable bit
#if defined(ISA_MIPS32)
.set mips32
#elif defined(ISA_MIPS64)
@@ -143,6 +143,7 @@
#endif
#else
mfc0 v0, COP_0_STATUS_REG # read status register
+ and v0, v0, SR_INT_ENAB
nop
and v1, v0, ~SR_INT_ENAB
mtc0 v1, COP_0_STATUS_REG # disable all interrupts
@@ -157,6 +158,7 @@
#ifdef TARGET_OCTEON
.set mips64
.word 0x041626020 #ei v0
+ and v0, SR_INT_ENAB # return old interrupt enable bit
#if defined(ISA_MIPS32)
.set mips32
#elif defined(ISA_MIPS64)
More information about the p4-projects
mailing list