You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
375 B
29 lines
375 B
3 years ago
|
.global null_handler
|
||
|
|
||
|
null_handler:
|
||
|
hlt
|
||
|
jmp null_handler
|
||
|
|
||
|
.global kbd_handler
|
||
|
|
||
|
kbd_handler:
|
||
|
push %rax
|
||
|
push %rcx
|
||
|
push %rdx
|
||
|
push %rsi
|
||
|
push %rdi
|
||
|
push %r8
|
||
|
push %r9
|
||
|
push %r10
|
||
|
push %r11
|
||
|
call keyboard_int_proc
|
||
|
pop %r11
|
||
|
pop %r10
|
||
|
pop %r9
|
||
|
pop %r8
|
||
|
pop %rdi
|
||
|
pop %rsi
|
||
|
pop %rdx
|
||
|
pop %rcx
|
||
|
pop %rax
|
||
|
iretq
|