Got end of Kernel Code.

git-svn-id: https://spexeah.com:8443/svn/Asuro@95 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
kieron
2017-05-18 13:17:39 +00:00
parent 2d57e08d8a
commit 9a2294863b
48 changed files with 7 additions and 2 deletions

View File

@ -78,6 +78,7 @@ begin
console.writeint(((mbinfo^.mem_upper + 1000) div 1024) + 1);
console.writestringln('MB');
console.setdefaultattribute(console.combinecolors(lYellow, Black));
console.writewordln(uint32(@util.endptr) - KERNEL_VIRTUAL_BASE);
util.halt_and_dont_catch_fire;
end;

View File

@ -79,8 +79,7 @@ _loader:
kstart:
mov dword [BootPageDirectory], 0
invlpg [0]
invlpg [0]
mov esp, KERNEL_STACK+KERNEL_STACKSIZE ;Create kernel stack
push eax ;Multiboot magic number
add ebx, KERNEL_VIRTUAL_BASE

View File

@ -11,6 +11,9 @@ unit system;
interface
const
KERNEL_VIRTUAL_BASE = $C0000000;
type
//internal types
cardinal = 0..$FFFFFFFF;

View File

@ -32,6 +32,8 @@ function inl(port : uint16) : uint32;
procedure memset(location : uint32; value : uint8; size : uint32);
procedure psleep(t : uint16);
procedure endptr(); external '__end' name '__end';
implementation
uses