diff options
Diffstat (limited to 'bsps/sparc/leon3/mpci/getcfg.c')
-rw-r--r-- | bsps/sparc/leon3/mpci/getcfg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bsps/sparc/leon3/mpci/getcfg.c b/bsps/sparc/leon3/mpci/getcfg.c index fc67cf8e3a..390a38b4a5 100644 --- a/bsps/sparc/leon3/mpci/getcfg.c +++ b/bsps/sparc/leon3/mpci/getcfg.c @@ -15,6 +15,7 @@ #include <rtems.h> #include <bsp.h> +#include <leon.h> #include <shm_driver.h> /* Let user override this configuration by declaring this a weak variable */ @@ -40,7 +41,7 @@ void Shm_Get_configuration( { int i; unsigned int tmp; - rtems_multiprocessing_table *mptable; + const rtems_multiprocessing_table *mptable; BSP_shm_cfgtbl.format = SHM_BIG; @@ -59,7 +60,7 @@ void Shm_Get_configuration( BSP_shm_cfgtbl.poll_intr = INTR_MODE; BSP_shm_cfgtbl.Intr.address = - (vol_u32 *) &(LEON3_IrqCtrl_Regs->force[LEON3_Cpu_Index]); + (vol_u32 *) &(LEON3_IrqCtrl_Regs->piforce[LEON3_Cpu_Index]); if (BSP_shm_cfgtbl.Intr.value == 0) BSP_shm_cfgtbl.Intr.value = 1 << LEON3_mp_irq; /* Use default MP-IRQ */ BSP_shm_cfgtbl.Intr.length = 4; |