Hi,

The following patch adds IPL_MPFLOOR to the two last archs missing it,
namely landisk and armv7. The goal is to be able to use the define in MI
code (note that it's already used but hidden behind a #ifdef
MULTIPROCESSOR).

I define it to IPL_NONE because those two archs are only UNIPROCESSOR as
far as I can tell, as such they don't have any mp lock to protect
against.

This has been cross build tested after a long battle with the cross
build system (thanks to drahn@ and bmercer@ for the helpful tips btw!),
but not run tested as I do not own those archs. I do not expect any
fallout for the define is not used on those platforms (sys/mutex.h
conditionnalize on MULTIPROCESSOR as noted above).

Mathieu.


diff --git arch/armv7/include/intr.h arch/armv7/include/intr.h
index 5b3f320009d..0607ee462e2 100644
--- arch/armv7/include/intr.h
+++ arch/armv7/include/intr.h
@@ -61,6 +61,7 @@
 
 /* Interrupt priority "flags". */
 #define        IPL_MPSAFE      0       /* no "mpsafe" interrupts */
+#define        IPL_MPFLOOR     IPL_NONE        /* no MP on armv7 */
 
 /* Interrupt sharing types. */
 #define        IST_NONE        0       /* none */
diff --git arch/landisk/include/intr.h arch/landisk/include/intr.h
index d87b2be5dd0..50d4e488359 100644
--- arch/landisk/include/intr.h
+++ arch/landisk/include/intr.h
@@ -46,6 +46,7 @@
 #define        IPL_HIGH        15      /* everything */
 
 #define        IPL_MPSAFE      0       /* no "mpsafe" interrupts */
+#define        IPL_MPFLOOR     IPL_NONE        /* no MP on landisk */
 
 #define        splraise(_ipl)          _cpu_intr_raise((_ipl) << 4)
 #define        splsoftclock()          splraise(IPL_SOFTCLOCK)

Reply via email to