:: commit 9a074530a95a35727f0ba5f7a97cdd20ae5cf4b8

mintsuki <mintsuki@protonmail.com> — 2023-08-14 15:58

parents: a248b557bb

exceptions: Change naming of exceptions in panic message

diff --git a/common/sys/exceptions.s2.c b/common/sys/exceptions.s2.c
index 2a10a968..8a4a7fcc 100644
--- a/common/sys/exceptions.s2.c
+++ b/common/sys/exceptions.s2.c
@@ -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
tab: 248 wrap: offon