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:
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -11,6 +11,9 @@ unit system;
|
||||
|
||||
interface
|
||||
|
||||
const
|
||||
KERNEL_VIRTUAL_BASE = $C0000000;
|
||||
|
||||
type
|
||||
//internal types
|
||||
cardinal = 0..$FFFFFFFF;
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user