Kernel processes / multitasking
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#include "regs.S"
|
||||
|
||||
.extern intr_handleintr
|
||||
|
||||
.global intr_vec0
|
||||
@ -49,38 +51,6 @@
|
||||
.global intr_vec46
|
||||
.global intr_vec47
|
||||
|
||||
.macro _push_regs
|
||||
push %rax
|
||||
push %rcx
|
||||
push %rdx
|
||||
push %rsi
|
||||
push %rdi
|
||||
push %r8
|
||||
push %r9
|
||||
push %r10
|
||||
push %r11
|
||||
push %r12
|
||||
push %r13
|
||||
push %r14
|
||||
push %r15
|
||||
.endm
|
||||
|
||||
.macro _pop_regs
|
||||
pop %r15
|
||||
pop %r14
|
||||
pop %r13
|
||||
pop %r12
|
||||
pop %r11
|
||||
pop %r10
|
||||
pop %r9
|
||||
pop %r8
|
||||
pop %rdi
|
||||
pop %rsi
|
||||
pop %rdx
|
||||
pop %rcx
|
||||
pop %rax
|
||||
.endm
|
||||
|
||||
.macro _vecintr_errorcode_present_save num
|
||||
pushq $\num
|
||||
.endm
|
||||
|
Reference in New Issue
Block a user