Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2008 15:19:49 GMT
From:      "Randall R. Stewart" <rrs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 136258 for review
Message-ID:  <200802261519.m1QFJngv049798@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://perforce.freebsd.org/chv.cgi?CH=136258

Change 136258 by rrs@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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802261519.m1QFJngv049798>