From 5f0006cfa7c499a501969641ac7bd630cb4706de Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 4 Mar 2021 15:43:28 +0200 Subject: pass cpu_state_t to interrupt handler --- src/cpu/exceptions.s | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/cpu/exceptions.s (limited to 'src/cpu/exceptions.s') diff --git a/src/cpu/exceptions.s b/src/cpu/exceptions.s deleted file mode 100644 index 9736be1..0000000 --- a/src/cpu/exceptions.s +++ /dev/null @@ -1,51 +0,0 @@ -.section .text -.extern print_exception - -.macro exception num -.global exception\num -exception\num: - movb $\num, (exc) - jmp exception_common -.endm - -exception 0x00 -exception 0x01 -exception 0x02 -exception 0x03 -exception 0x04 -exception 0x05 -exception 0x06 -exception 0x07 -exception 0x08 -exception 0x09 -exception 0x0a -exception 0x0b -exception 0x0c -exception 0x0d -exception 0x0e -exception 0x0f -exception 0x10 -exception 0x11 -exception 0x12 -exception 0x13 - -exception_common: - pusha - pushl %ds - pushl %es - pushl %fs - pushl %gs - - push (exc) - call print_exception - - popl %gs - popl %fs - popl %es - popl %ds - popa - iret - -.data - exc: .byte 0 - -- cgit v1.2.1