git-svn-id: https://spexeah.com:8443/svn/Asuro@318 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c

This commit is contained in:
kieron
2018-04-05 13:11:50 +00:00
parent fa11f01e09
commit 9f7cefa506
12 changed files with 30 additions and 0 deletions

View File

@ -35,16 +35,44 @@ type
end;
PBDA = ^TBDA;
TMCFG = bitpacked record
Signature : Array[0..3] of Char;
Table_Length : uint32;
Revision : Byte;
Checksum : Byte;
OEM_ID : Array[0..5] of Byte;
OEM_Table_ID : uint64;
OEM_Revision : uint32;
Creator_ID : uint32;
Creator_Revision : uint32;
Reserved : uint64;
end;
PMCFG = ^TMCFG;
const
BDA : PBDA = PBDA($C0000400);
var
EBDA : void;
MCFG : PMCFG;
procedure tick_update(data : void);
procedure init();
implementation
uses
console, vmemorymanager;
procedure tick_update(data : void);
begin
BDA^.Ticks:= BDA^.Ticks + 1;
end;
procedure init();
begin
console.writestringln('BDA: Loaded.');
//TO-DO search for important structures like the MCFG or the EBDA.
end;
end.

View File

@ -111,6 +111,8 @@ begin
tss.init();
scheduler.init();
bios_data_area.init();
//asm INT 13 end;
STI;
isr32.hook(uint32(@bios_data_area.tick_update));