core/minute-ia/irq_handler.h: Format with clang-format
BRANCH=none
TEST=none
@@ -35,21 +35,19 @@ asm (".include \"core/minute-ia/irq_handler_common.S\"");
void IRQ_HANDLER(irq_)(void); \
__asm__(".section .rodata.irqs\n"); \
const struct irq_def __keep CONCAT4(__irq_, irq_, _, routine_) \
- __attribute__((section(".rodata.irqs"))) = { \
- .irq = irq_, \
+ __attribute__((section( \
+ ".rodata.irqs"))) = { .irq = irq_, \
.routine = routine_, \
- .handler = IRQ_HANDLER(irq_) \
- }; \
- __asm__ ( \
- ".section .text._irq_" #irq_ "_handler\n" \
+ .handler = IRQ_HANDLER(irq_) }; \
+ __asm__(".section .text._irq_" #irq_ "_handler\n" \
"_irq_" #irq_ "_handler:\n" \
- "pusha\n" \
- ASM_LOCK_PREFIX "addl $1, __in_isr\n" \
+ "pusha\n" ASM_LOCK_PREFIX "addl $1, __in_isr\n" \
"irq_handler_common $0 $0 $" #irq_ "\n" \
- "movl $"#vector ", " STRINGIFY(IOAPIC_EOI_REG_ADDR) "\n" \
- "movl $0x00, " STRINGIFY(LAPIC_EOI_REG_ADDR) "\n" \
- ASM_LOCK_PREFIX "subl $1, __in_isr\n" \
+ "movl $" #vector ", " STRINGIFY( \
+ IOAPIC_EOI_REG_ADDR) "\n" \
+ "movl $0x00, " STRINGIFY( \
+ LAPIC_EOI_REG_ADDR) "\n" ASM_LOCK_PREFIX \
+ "subl $1, __in_isr\n" \
"popa\n" \
- "iret\n" \
- )
+ "iret\n")
#endif /* __CROS_EC_IRQ_HANDLER_H */
