Cleaning up interrupts.s and adding missing IRQs

This commit is contained in:
Justin C. Miller
2018-09-06 09:34:34 -07:00
parent 585abe9a18
commit f146a96298
6 changed files with 258 additions and 148 deletions

48
src/kernel/push_all.inc Normal file
View File

@@ -0,0 +1,48 @@
%macro push_all_and_segments 0
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
mov ax, ds
push rax
%endmacro
%macro pop_all_and_segments 0
pop rax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
%endmacro
; vim: ft=asm