core/minute-ia/interrupts.c: Format with clang-format
BRANCH=none
TEST=none
@@ -228,15 +228,10 @@ DEFINE_EXN_HANDLER(20);
* watchdog timer expiration. However, this time, hardware does not
* push errorcode, and we must account for that by pushing zero.
*/
-noreturn __keep
-void exception_panic_wdt(uint32_t cs)
+noreturn __keep void exception_panic_wdt(uint32_t cs)
{
- exception_panic(
- CONFIG_MIA_WDT_VEC,
- 0,
- (uint32_t)__builtin_return_address(0),
- cs,
- 0);
+ exception_panic(CONFIG_MIA_WDT_VEC, 0,
+ (uint32_t)__builtin_return_address(0), cs, 0);
}
void set_interrupt_gate(uint8_t num, isr_handler_t func, uint8_t flags)
@@ -384,11 +379,9 @@ void handle_lapic_lvt_error(void)
/* LAPIC LVT error is not an IRQ and can not use DECLARE_IRQ() to call. */
void _lapic_error_handler(void);
-__asm__ (
- ".section .text._lapic_error_handler\n"
+__asm__(".section .text._lapic_error_handler\n"
"_lapic_error_handler:\n"
- "pusha\n"
- ASM_LOCK_PREFIX "addl $1, __in_isr\n"
+ "pusha\n" ASM_LOCK_PREFIX "addl $1, __in_isr\n"
"movl %esp, %eax\n"
"movl $stack_end, %esp\n"
"push %eax\n"
@@ -399,11 +392,14 @@ __asm__ (
#endif
"call handle_lapic_lvt_error\n"
"pop %esp\n"
- "movl $0x00, (0xFEE000B0)\n" /* Set EOI for LAPIC */
+ "movl $0x00, (0xFEE000B0)\n" /* Set
+ EOI
+ for
+ LAPIC
+ */
ASM_LOCK_PREFIX "subl $1, __in_isr\n"
"popa\n"
- "iret\n"
- );
+ "iret\n");
/* Should only be called in interrupt context */
void unhandled_vector(void)
@@ -454,8 +450,7 @@ void init_interrupts(void)
/* Setup gates for IRQs declared by drivers using DECLARE_IRQ */
for (p = __irq_data; p < __irq_data_end; p++)
- set_interrupt_gate(IRQ_TO_VEC(p->irq),
- p->handler,
+ set_interrupt_gate(IRQ_TO_VEC(p->irq), p->handler,
IDT_DESC_FLAGS);
/* Software generated IRQ */
