Memory Manager.
git-svn-id: https://spexeah.com:8443/svn/Asuro@106 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user