See last
git-svn-id: https://spexeah.com:8443/svn/Asuro@40 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
cbb1ec6f88
commit
b228f28968
26
src/drivers/isr0.pas
Normal file
26
src/drivers/isr0.pas
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
unit isr0;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
util,
|
||||||
|
console,
|
||||||
|
IDT;
|
||||||
|
|
||||||
|
procedure register();
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
procedure Main; interrupt;
|
||||||
|
begin
|
||||||
|
CLI;
|
||||||
|
console.writestringln('Divide by Zero Exception.');
|
||||||
|
util.halt_and_catch_fire;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure register();
|
||||||
|
begin
|
||||||
|
IDT.set_gate(0, uint32(@Main), $08, ISR_RING_0);
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
Loading…
x
Reference in New Issue
Block a user