Added ISR1.
git-svn-id: https://spexeah.com:8443/svn/Asuro@41 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
b228f28968
commit
998c45da64
26
src/drivers/isr1.pas
Normal file
26
src/drivers/isr1.pas
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
unit isr1;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
util,
|
||||||
|
console,
|
||||||
|
IDT;
|
||||||
|
|
||||||
|
procedure register();
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
procedure Main; interrupt;
|
||||||
|
begin
|
||||||
|
CLI;
|
||||||
|
|
||||||
|
util.halt_and_catch_fire;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure register();
|
||||||
|
begin
|
||||||
|
IDT.set_gate(1, uint32(@Main), $08, ISR_RING_0);
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
@ -3,7 +3,8 @@ unit isr;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
ISR0;
|
ISR0,
|
||||||
|
ISR1;
|
||||||
|
|
||||||
procedure init();
|
procedure init();
|
||||||
|
|
||||||
@ -12,6 +13,7 @@ implementation
|
|||||||
procedure init();
|
procedure init();
|
||||||
begin
|
begin
|
||||||
ISR0.register();
|
ISR0.register();
|
||||||
|
ISR1.register();
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
Loading…
x
Reference in New Issue
Block a user