hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/dec/int-handler.S
....@@ -131,7 +131,7 @@
131131 */
132132 mfc0 t0,CP0_CAUSE # get pending interrupts
133133 mfc0 t1,CP0_STATUS
134
-#ifdef CONFIG_32BIT
134
+#if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT)
135135 lw t2,cpu_fpu_mask
136136 #endif
137137 andi t0,ST0_IM # CAUSE.CE may be non-zero!
....@@ -139,7 +139,7 @@
139139
140140 beqz t0,spurious
141141
142
-#ifdef CONFIG_32BIT
142
+#if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT)
143143 and t2,t0
144144 bnez t2,fpu # handle FPU immediately
145145 #endif
....@@ -280,7 +280,7 @@
280280 j dec_irq_dispatch
281281 nop
282282
283
-#ifdef CONFIG_32BIT
283
+#if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT)
284284 fpu:
285285 lw t0,fpu_kstat_irq
286286 nop
....@@ -304,8 +304,8 @@
304304 */
305305 FEXPORT(dec_intr_unimplemented)
306306 move a1,t0 # cheats way of printing an arg!
307
- PANIC("Unimplemented cpu interrupt! CP0_CAUSE: 0x%08x");
307
+ ASM_PANIC("Unimplemented cpu interrupt! CP0_CAUSE: 0x%08x");
308308
309309 FEXPORT(asic_intr_unimplemented)
310310 move a1,t0 # cheats way of printing an arg!
311
- PANIC("Unimplemented asic interrupt! ASIC ISR: 0x%08x");
311
+ ASM_PANIC("Unimplemented asic interrupt! ASIC ISR: 0x%08x");