mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-06 12:11:43 +00:00
19 lines
530 B
C
19 lines
530 B
C
|
#ifndef FUSEE_PANIC_H
|
||
|
#define FUSEE_PANIC_H
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#define PANIC_COLOR_KERNEL 0x0000FF
|
||
|
#define PANIC_COLOR_SECMON_EXCEPTION 0xFF7700
|
||
|
#define PANIC_COLOR_SECMON_GENERIC 0x00FFFF
|
||
|
#define PANIC_COLOR_SECMON_DEEPSLEEP 0xFF77FF /* 4.0+ color */
|
||
|
#define PANIC_COLOR_BOOTLOADER_GENERIC 0xAA00FF
|
||
|
#define PANIC_COLOR_BOOTLOADER_SAFEMODE 0xFFFFAA /* Removed */
|
||
|
|
||
|
#define PANIC_CODE_SAFEMODE 0x00000020
|
||
|
|
||
|
void check_and_display_panic(void);
|
||
|
__attribute__ ((noreturn)) void panic(uint32_t code);
|
||
|
|
||
|
#endif
|