git-svn-id: https://spexeah.com:8443/svn/Asuro@201 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
kieron
2017-05-23 17:25:05 +00:00
parent 1c64be9cb5
commit 797ae1c7a4
40 changed files with 13 additions and 2 deletions

View File

@ -29,9 +29,14 @@ var
procedure Main; interrupt; //IRQ0, 1024.19hz aprox
var
i : integer;
regs : PRegisters;
begin
CLI;
asm
MOV EAX, EBP
MOV Regs, EAX
end;
for i:=0 to MAX_HOOKS-1 do begin
if uint32(Hooks[i]) <> 0 then begin
Hooks[i](nil);

View File

@ -41,7 +41,7 @@ end;
procedure register();
begin
memset(uint32(@Hooks[0]), 0, sizeof(pp_hook_method)*MAX_HOOKS);
IDT.set_gate(18, uint32(@Main), $08, ISR_RING_0);
IDT.set_gate(46, uint32(@Main), $08, ISR_RING_0);
end;
procedure hook(hook_method : uint32);