mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[kernel] Make panic noreturn
This keeps clang from complaining about other noreturn functions calling panic::panic().
This commit is contained in:
@@ -13,6 +13,7 @@ constexpr uint32_t send_nmi_command =
|
|||||||
extern uint32_t *apic_icr;
|
extern uint32_t *apic_icr;
|
||||||
extern void const *symbol_table;
|
extern void const *symbol_table;
|
||||||
|
|
||||||
|
[[ noreturn ]]
|
||||||
__attribute__ ((always_inline))
|
__attribute__ ((always_inline))
|
||||||
inline void panic(
|
inline void panic(
|
||||||
const char *message = nullptr,
|
const char *message = nullptr,
|
||||||
|
|||||||
Reference in New Issue
Block a user