Changed Memory Management, working on Virtual Memory Management for next rev.
git-svn-id: https://spexeah.com:8443/svn/Asuro@116 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
@ -13,9 +13,9 @@ uses
|
||||
console,
|
||||
bios_data_area,
|
||||
keyboard,
|
||||
memorymanager,
|
||||
scheduler,
|
||||
paging;
|
||||
vmemorymanager,
|
||||
pmemorymanager,
|
||||
scheduler;
|
||||
|
||||
procedure kmain(mbinfo: Pmultiboot_info_t; mbmagic: uint32); stdcall;
|
||||
|
||||
@ -51,19 +51,21 @@ begin
|
||||
idt.init();
|
||||
isr.init();
|
||||
irq.init();
|
||||
memorymanager.init();
|
||||
pmemorymanager.init();
|
||||
scheduler.init();
|
||||
|
||||
STI;
|
||||
isr32.hook(uint32(@bios_data_area.tick_update));
|
||||
|
||||
{z:= 1;
|
||||
z:= 1;
|
||||
while true do begin
|
||||
console.writeintln(z);
|
||||
pint:= kalloc(65000);
|
||||
console.writeword(z);
|
||||
console.writestring(': ');
|
||||
pint:= kalloc(1024*4);
|
||||
console.writewordln(uint32(pint));
|
||||
if pint = nil then while true do begin end else pint^:= 1234;
|
||||
z:=z+1;
|
||||
end;}
|
||||
end;
|
||||
|
||||
//drivers
|
||||
keyboard.init(keyboard_layout);
|
||||
|
Reference in New Issue
Block a user