summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libcpu/powerpc/old-exceptions/cpu.c')
-rw-r--r--c/src/lib/libcpu/powerpc/old-exceptions/cpu.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c b/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
index f6ffeae12a..0e4a62a8a8 100644
--- a/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
+++ b/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
@@ -56,6 +56,20 @@ static void ppc_spurious(int, CPU_Interrupt_frame *);
int _CPU_spurious_count = 0;
int _CPU_last_spurious = 0;
+/* This variable is initialized to 'TRUE' by default;
+ * BSPs which have their vectors in ROM should set it
+ * to FALSE prior to initializing raw exceptions.
+ *
+ * I suspect the only candidate is the simulator.
+ * After all, the value of this variable is used to
+ * determine where to install the prologue code and
+ * installing to ROM on anyting that's real ROM
+ * will fail anyways.
+ *
+ * This should probably go away... (T.S. 2007/11/30)
+ */
+boolean bsp_exceptions_in_RAM = TRUE;
+
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
@@ -308,7 +322,6 @@ void _CPU_ISR_install_vector(
{
proc_ptr ignored;
extern void (*bsp_spurious_handler)(uint32_t vector, CPU_Interrupt_frame *);
- extern boolean bsp_exceptions_in_RAM;
*old_handler = _ISR_Vector_table[ vector ];