summaryrefslogtreecommitdiff
path: root/firmware/target/arm/olympus/mrobe-500/system-mr500.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/olympus/mrobe-500/system-mr500.c')
-rw-r--r--firmware/target/arm/olympus/mrobe-500/system-mr500.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/firmware/target/arm/olympus/mrobe-500/system-mr500.c b/firmware/target/arm/olympus/mrobe-500/system-mr500.c
index 1163104ad2..5b52dc3208 100644
--- a/firmware/target/arm/olympus/mrobe-500/system-mr500.c
+++ b/firmware/target/arm/olympus/mrobe-500/system-mr500.c
@@ -95,7 +95,7 @@ static const char * const irqname[] =
95 95
96static void UIRQ(void) 96static void UIRQ(void)
97{ 97{
98 unsigned int offset = inw(IO_INTC_IRQENTRY0); 98 unsigned int offset = IO_INTC_IRQENTRY0;
99 panicf("Unhandled IRQ %02X: %s", offset, irqname[offset]); 99 panicf("Unhandled IRQ %02X: %s", offset, irqname[offset]);
100} 100}
101 101
@@ -105,7 +105,7 @@ void irq_handler(void)
105 /* 105 /*
106 * Based on: linux/arch/arm/kernel/entry-armv.S and system-meg-fx.c 106 * Based on: linux/arch/arm/kernel/entry-armv.S and system-meg-fx.c
107 */ 107 */
108 108 printf("INTERUPT!");
109 asm volatile ( 109 asm volatile (
110 "sub lr, lr, #4 \r\n" 110 "sub lr, lr, #4 \r\n"
111 "stmfd sp!, {r0-r3, ip, lr} \r\n" 111 "stmfd sp!, {r0-r3, ip, lr} \r\n"
@@ -149,23 +149,23 @@ void system_init(void)
149 /* taken from linux/arch/arm/mach-itdm320-20/irq.c */ 149 /* taken from linux/arch/arm/mach-itdm320-20/irq.c */
150 150
151 /* Clearing all FIQs and IRQs. */ 151 /* Clearing all FIQs and IRQs. */
152 outw(0xFFFF, IO_INTC_IRQ0); 152 IO_INTC_IRQ0 = 0xFFFF;
153 outw(0xFFFF, IO_INTC_IRQ1); 153 IO_INTC_IRQ1 = 0xFFFF;
154 outw(0xFFFF, IO_INTC_IRQ2); 154 IO_INTC_IRQ2 = 0xFFFF;
155 155
156 outw(0xFFFF, IO_INTC_FIQ0); 156 IO_INTC_FIQ0 = 0xFFFF;
157 outw(0xFFFF, IO_INTC_FIQ1); 157 IO_INTC_FIQ1 = 0xFFFF;
158 outw(0xFFFF, IO_INTC_FIQ2); 158 IO_INTC_FIQ2 = 0xFFFF;
159 159
160 /* Masking all Interrupts. */ 160 /* Masking all Interrupts. */
161 outw(0, IO_INTC_EINT0); 161 IO_INTC_EINT0 = 0;
162 outw(0, IO_INTC_EINT1); 162 IO_INTC_EINT1 = 0;
163 outw(0, IO_INTC_EINT2); 163 IO_INTC_EINT2 = 0;
164 164
165 /* Setting INTC to all IRQs. */ 165 /* Setting INTC to all IRQs. */
166 outw(0, IO_INTC_FISEL0); 166 IO_INTC_FISEL0 = 0;
167 outw(0, IO_INTC_FISEL1); 167 IO_INTC_FISEL1 = 0;
168 outw(0, IO_INTC_FISEL2); 168 IO_INTC_FISEL2 = 0;
169} 169}
170 170
171int system_memory_guard(int newmode) 171int system_memory_guard(int newmode)