From e94543eef477e667162f0947d9877f8011f4fcdd Mon Sep 17 00:00:00 2001 From: Steve Passe Date: Tue, 8 Jul 1997 23:39:02 +0000 Subject: [PATCH] added #define IPI_LEVEL --- sys/i386/i386/mplock.s | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/i386/i386/mplock.s b/sys/i386/i386/mplock.s index f8c258c4875..31d0a132ccf 100644 --- a/sys/i386/i386/mplock.s +++ b/sys/i386/i386/mplock.s @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: mplock.s,v 1.5 1997/07/06 23:50:12 fsmp Exp $ + * $Id: mplock.s,v 1.3 1997/07/08 23:35:01 smp Exp smp $ * * Functions for locking between CPUs in a SMP system. * @@ -25,10 +25,12 @@ * these are all temps for debugging CPUSTOP code * they will (hopefully) go away soon... */ -#define MARK_HITS_NOT -#define ADJUST_TPR_NOT +#define MARK_HITS +#define ADJUST_TPR #define ADJUST_IPL_NOT -#define REALLY_STI_NOT +#define REALLY_STI + +#define IPI_LEVEL 0x3f #ifdef MARK_HITS #define MARK_HIT(X) \ @@ -175,7 +177,7 @@ NON_GPROF_ENTRY(get_mplock) btl $9, (%esp) /* test EI bit */ jc 1f /* INTs currently enabled */ andl $0xffffff00, %eax /* clear task priority field */ - orl $0x50, %eax /* only allow IPIs + orl $IPI_LEVEL, %eax /* only allow IPIs movl %eax, lapic_tpr /* set it */ #endif /* ADJUST_TPR */