mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
21 lines
408 B
Plaintext
21 lines
408 B
Plaintext
; The OS/K Team licenses this file to you under the MIT license.
|
|
; See the LICENSE file in the project root for more information.
|
|
|
|
TrapHandlers.prolog:
|
|
sub rsp, rbp, 24
|
|
mov q[rbp-8], r11
|
|
mov q[rbp-16], r12
|
|
mov q[rbp-24], r13
|
|
|
|
jmp rax ; go back
|
|
|
|
TrapHandlers.epilog:
|
|
mov r13, q[rbp-24]
|
|
mov r12, q[rbp-16]
|
|
mov r11, q[rbp-8]
|
|
|
|
mov ax0, r11
|
|
call IDT.DoneHandling
|
|
iret
|
|
|