diff --git a/Asuro.iso b/Asuro.iso index 2ab4db1c..ac1edd92 100644 Binary files a/Asuro.iso and b/Asuro.iso differ diff --git a/lib/keyboard.ppu b/lib/keyboard.ppu index b2c80de4..8445b8b1 100644 Binary files a/lib/keyboard.ppu and b/lib/keyboard.ppu differ diff --git a/lib/libpconsole.a b/lib/libpconsole.a index 6489aee4..2ed8adb1 100644 Binary files a/lib/libpconsole.a and b/lib/libpconsole.a differ diff --git a/lib/libpmultiboot.a b/lib/libpmultiboot.a index e2fe869e..e215fd8e 100644 Binary files a/lib/libpmultiboot.a and b/lib/libpmultiboot.a differ diff --git a/lib/libpsystem.a b/lib/libpsystem.a index 3486d37d..d4d89b5b 100644 Binary files a/lib/libpsystem.a and b/lib/libpsystem.a differ diff --git a/src/kernel.pas b/src/kernel.pas index 02280c46..fbbc2b05 100644 --- a/src/kernel.pas +++ b/src/kernel.pas @@ -56,6 +56,7 @@ begin kfree(pint2); console.writeintln(pint^); kfree(pint); + pint2:= kalloc(128); util.halt_and_catch_fire; STI; diff --git a/src/memorymanager.pas b/src/memorymanager.pas index d7136712..a49c60f3 100644 --- a/src/memorymanager.pas +++ b/src/memorymanager.pas @@ -45,8 +45,8 @@ var miss : boolean; begin - blocks:= size div 8; - rem:= size - (blocks * 8); + blocks:= size div ALLOC_SPACE; + rem:= size - (blocks * ALLOC_SPACE); if rem > 0 then blocks:= blocks + 1; kalloc:= nil; for i:=0 to MAX_ENTRIES-1 do begin @@ -58,7 +58,7 @@ begin end; end; if not miss then begin - kalloc:= void(Memory_Start+(i * 8)); + kalloc:= void(Memory_Start+(i * ALLOC_SPACE)); for j:=0 to blocks-1 do begin Memory_Manager[i+j].Present:= true; Memory_Manager[i+j].Length:= 0; @@ -86,7 +86,7 @@ begin INT 13 end; end; - Block:= (uint32(Area) - Memory_Start) div 8; + Block:= (uint32(Area) - Memory_Start) div ALLOC_SPACE; if Memory_Manager[Block].Present then begin If Memory_Manager[Block].Length > 0 then begin bLength:= Memory_Manager[Block].Length;