kvisc/ka/sys/intr/common.k

23 lines
440 B
Plaintext
Raw Normal View History

2019-07-09 19:51:03 +02:00
; 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:
2019-07-09 20:02:36 +02:00
sub rsp, rbp, 32
mov q[rbp-8], r11
mov q[rbp-16], r12
mov q[rbp-24], r13
cmp q[rsp], r13
crash.z
2019-07-09 19:51:03 +02:00
jmp rax ; go back
TrapHandlers.epilog:
2019-07-09 20:02:36 +02:00
mov r11, q[rbp-8]
mov r12, q[rbp-16]
mov r13, q[rbp-24]
2019-07-09 19:51:03 +02:00
mov ax0, r11
call IDT.DoneHandling
iret