Asuro/src/memorymanager.pas
kieron f2a42134c7 MemoryManager WTF?!
git-svn-id: https://spexeah.com:8443/svn/Asuro@101 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
2017-05-18 14:08:16 +00:00

37 lines
516 B
ObjectPascal

unit memorymanager;
interface
uses
util;
const
ALLOC_SPACE = 8; //64-Bit Allocations
MAX_ENTRIES = $FFFF;
procedure init();
function kalloc(size : uint32) : void;
procedure kfree(area : void);
implementation
var
Memory_Start : uint32;
Memory_Manager : bitpacked array[1..MAX_ENTRIES] of Boolean;
procedure init();
begin
Memory_Start:= uint32(@util.endptr);
end;
function kalloc(size : uint32) : void;
begin
kalloc:= void(0);
end;
function kfree(area : void);
begin
end;
end.