Memory Manager.

git-svn-id: https://spexeah.com:8443/svn/Asuro@106 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
kieron
2017-05-18 15:20:37 +00:00
parent abccbb9e7f
commit e7e5eccc9b
7 changed files with 51 additions and 8 deletions

View File

@ -27,6 +27,7 @@ var
z : uint32;
dds : uint32;
pint : puint32;
pint2 : puint32;
begin
mbi:= mbinfo;
@ -48,11 +49,13 @@ begin
irq.init();
memorymanager.init();
pint2:= kalloc(18);
pint:= kalloc(sizeof(uint32));
if pint = nil then console.writestringln('!');
pint^:= 1234;
kfree(pint2);
console.writeintln(pint^);
pint:= kalloc(18);
kfree(pint);
util.halt_and_catch_fire;
STI;