aboutsummaryrefslogtreecommitdiff
path: root/kernel/interrupts/idt.dats
diff options
context:
space:
mode:
authorXander <xander@biltopia.org>2023-07-13 21:41:37 +0200
committerXander <xander@biltopia.org>2023-07-13 21:41:37 +0200
commit947331444708d2dc622ad6d8d3eb069e29a1898f (patch)
tree0d6fa96210954333a051ee58a246fcfa65448824 /kernel/interrupts/idt.dats
parent67245a7eebeb135427d50171fda7af58770afc6d (diff)
downloadats-os-947331444708d2dc622ad6d8d3eb069e29a1898f.tar.xz
ats-os-947331444708d2dc622ad6d8d3eb069e29a1898f.zip
Allow negative number conversion
Diffstat (limited to 'kernel/interrupts/idt.dats')
-rw-r--r--kernel/interrupts/idt.dats6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/interrupts/idt.dats b/kernel/interrupts/idt.dats
index ea25ced..0b91253 100644
--- a/kernel/interrupts/idt.dats
+++ b/kernel/interrupts/idt.dats
@@ -43,7 +43,7 @@ end
extern fun default_exception_handler_e2(frame: &int_frame, error_code : uint64) : void = "mac#"
implement default_exception_handler_e2(frame,error_code) = let
in
- println!("DEFAULT EXCEPTION HANDLER - WIDTH ERROR CODE");
+ println!("DEFAULT EXCEPTION HANDLER - WIDTH ERROR CODE:", $UN.cast{int}(error_code));
end
extern fun default_interrupt_handler2(frame: &int_frame) : void = "mac#"
@@ -52,10 +52,10 @@ in
println!("DEFAULT INTERRUPT HANDLER - NO ERROR CODE");
end
-extern fun default_interrupt_handler_e2(frame: &int_frame, error_code : uint64) : void = "mac#"
+extern fun default_interrupt_handler_e2 (frame: &int_frame, error_code : uint64) : void = "mac#"
implement default_interrupt_handler_e2(frame,error_code) = let
in
- println!("DEFAULT INTERRUPT HANDLER - WIDTH ERROR CODE");
+ println!("DEFAULT INTERRUPT HANDLER - WIDTH ERROR CODE:", $UN.cast{int}(error_code));
end
//-------------------------------------------------------