summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/bootcard.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/shared/bootcard.c')
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index 9174e8fe6c..2800232998 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -43,7 +43,10 @@
* $Id$
*/
-#include <bsp.h>
+#include <stddef.h>
+#include <stdint.h>
+
+#include <rtems.h>
/*
* Since there is a forward reference
@@ -117,6 +120,14 @@ int boot_card(
#endif
/*
+ * Special case for PowerPC: The interrupt disable mask is stored in SPRG0.
+ * It must be valid before we can use rtems_interrupt_disable().
+ */
+ #ifdef PPC_INTERRUPT_DISABLE_MASK_DEFAULT
+ ppc_interrupt_set_disable_mask( PPC_INTERRUPT_DISABLE_MASK_DEFAULT);
+ #endif /* PPC_INTERRUPT_DISABLE_MASK_DEFAULT */
+
+ /*
* Make sure interrupts are disabled.
*/
rtems_interrupt_disable( bsp_isr_level );