mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
traps
This commit is contained in:
parent
7afa2439bb
commit
af9b87cc49
@ -30,19 +30,24 @@ cpudev_test:
|
|||||||
mov ax1, 1
|
mov ax1, 1
|
||||||
call IDT.AddHandler
|
call IDT.AddHandler
|
||||||
|
|
||||||
|
trap 0
|
||||||
trap 0
|
trap 0
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
trap0_test:
|
trap0_test:
|
||||||
mov rsp, 0x300000
|
mov rsp, 0x300000
|
||||||
|
mov nx7, rax
|
||||||
|
|
||||||
mov ax0, .msg
|
mov ax0, .msg
|
||||||
call print
|
call print
|
||||||
|
|
||||||
|
mov ax0, nx7
|
||||||
|
call IDT.DoneHandling
|
||||||
|
|
||||||
iret
|
iret
|
||||||
|
|
||||||
.msg = "Handling TRAP #0 !"
|
.msg = "Handling TRAP #0 !\n"
|
||||||
|
|
||||||
showoff:
|
showoff:
|
||||||
call ramdev_test
|
call ramdev_test
|
||||||
|
Loading…
Reference in New Issue
Block a user