core/minute-ia/panic.c: Format with clang-format
BRANCH=none
TEST=none
@@ -57,13 +57,12 @@ void panic_data_print(const struct panic_data *pdata)
else if (pdata->x86.vector <= 20)
panic_printf("Reason: %s\n", panic_reason[pdata->x86.vector]);
else if (panic_sw_reason_is_valid(pdata->x86.vector)) {
- panic_printf("Software panic reason %s\n",
- panic_sw_reasons[pdata->x86.vector -
- PANIC_SW_BASE]);
+ panic_printf(
+ "Software panic reason %s\n",
+ panic_sw_reasons[pdata->x86.vector - PANIC_SW_BASE]);
panic_printf("Software panic info 0x%x\n",
pdata->x86.error_code);
- }
- else
+ } else
panic_printf("Interrupt vector number: 0x%08X (unknown)\n",
pdata->x86.vector);
panic_printf("\n");
@@ -91,12 +90,8 @@ void panic_data_print(const struct panic_data *pdata)
* order pushed to the stack by hardware: see "Intel 64 and IA-32
* Architectures Software Developer's Manual", Volume 3A, Figure 6-4.
*/
-void exception_panic(
- uint32_t vector,
- uint32_t error_code,
- uint32_t eip,
- uint32_t cs,
- uint32_t eflags)
+void exception_panic(uint32_t vector, uint32_t error_code, uint32_t eip,
+ uint32_t cs, uint32_t eflags)
{
/*
* If a panic were to occur during the reset procedure, we want
@@ -176,19 +171,15 @@ void exception_panic(
__builtin_unreachable();
}
-noreturn
-void software_panic(uint32_t reason, uint32_t info)
+noreturn void software_panic(uint32_t reason, uint32_t info)
{
uint16_t code_segment;
/* Get the current code segment */
__asm__ volatile("movw %%cs, %0" : "=m"(code_segment));
- exception_panic(reason,
- info,
- (uint32_t)__builtin_return_address(0),
- code_segment,
- 0);
+ exception_panic(reason, info, (uint32_t)__builtin_return_address(0),
+ code_segment, 0);
__builtin_unreachable();
}
