exceptions: Change naming of exceptions in panic message

This commit is contained in:
mintsuki 2023-08-14 10:58:30 -05:00
parent a248b557bb
commit 9a074530a9
1 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
#if defined (BIOS)
static const char *exception_names[] = {
"Division by 0",
"Division",
"Debug",
"NMI",
"Breakpoint",
@ -22,10 +22,10 @@ static const char *exception_names[] = {
"General protection fault",
"Page fault",
"???",
"x87 exception",
"x87",
"Alignment check",
"Machine check",
"SIMD exception",
"SIMD",
"Virtualisation",
"???",
"???",
@ -41,7 +41,7 @@ static const char *exception_names[] = {
void except(uint32_t exception, uint32_t error_code, uint32_t ebp, uint32_t eip) {
(void)ebp;
panic(false, "%s at %x. Error code: %x", exception_names[exception], eip, error_code);
panic(false, "%s exception at %x. Error code: %x", exception_names[exception], eip, error_code);
}
#endif