summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/apic_ipl.s
diff options
context:
space:
mode:
authorfsmp <fsmp@FreeBSD.org>1997-08-20 05:25:48 +0000
committerfsmp <fsmp@FreeBSD.org>1997-08-20 05:25:48 +0000
commit2c414e3eff799c18e5d3e8edfe37d7dc71f35c7a (patch)
tree4060f694285dcb8b0a5d572747820da61322b0df /sys/i386/isa/apic_ipl.s
parentea72b8e976791b005527662091bc146ad0bfd3b6 (diff)
downloadFreeBSD-src-2c414e3eff799c18e5d3e8edfe37d7dc71f35c7a.zip
FreeBSD-src-2c414e3eff799c18e5d3e8edfe37d7dc71f35c7a.tar.gz
Preperation for moving cpl into critical region access.
Several new fine-grained locks. New FAST_INTR() methods: - separate simplelock for FAST_INTR, no more giant lock. - FAST_INTR()s no longer checks ipending on way out of ISR. sio made MP-safe (I hope).
Diffstat (limited to 'sys/i386/isa/apic_ipl.s')
-rw-r--r--sys/i386/isa/apic_ipl.s20
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/i386/isa/apic_ipl.s b/sys/i386/isa/apic_ipl.s
index b6f34e1..1412367 100644
--- a/sys/i386/isa/apic_ipl.s
+++ b/sys/i386/isa/apic_ipl.s
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: apic_ipl.s,v 1.10 1997/07/24 23:49:44 fsmp Exp $
+ * $Id: apic_ipl.s,v 1.11 1997/07/31 17:28:56 fsmp Exp $
*/
@@ -66,11 +66,29 @@ _vec:
.long vec8, vec9, vec10, vec11, vec12, vec13, vec14, vec15
.long vec16, vec17, vec18, vec19, vec20, vec21, vec22, vec23
+/* various simple locks */
.align 2 /* MUST be 32bit aligned */
+
+/* critical region around IO APIC */
.globl _imen_lock
_imen_lock:
.long 0
+/* critical region around spl & cpl */
+ .globl _cpl_lock
+_cpl_lock:
+ .long 0
+
+/* critical region around FAST_INTR() routines */
+ .globl _fast_intr_lock
+_fast_intr_lock:
+ .long 0
+
+/* critical region around INTR() routines */
+ .globl _intr_lock
+_intr_lock:
+ .long 0
+
/*
* Note:
* This is the UP equivilant of _imen.
OpenPOWER on IntegriCloud