boot.asm comments
git-svn-id: svn://anubis/hos/trunk@41 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
parent
54b42c0226
commit
784978b131
@ -70,7 +70,7 @@ segmented_start:
|
|||||||
mov [CONSOLE_MEMORY+160*8+1*2], cx
|
mov [CONSOLE_MEMORY+160*8+1*2], cx
|
||||||
|
|
||||||
add ebx, VIRTUAL_OFFSET
|
add ebx, VIRTUAL_OFFSET
|
||||||
push eax
|
push eax ; multiboot bootloader magic value
|
||||||
push ebx ; pointer to multiboot info struct
|
push ebx ; pointer to multiboot info struct
|
||||||
call k_bootstrap
|
call k_bootstrap
|
||||||
add esp, 8
|
add esp, 8
|
||||||
@ -78,6 +78,11 @@ segmented_start:
|
|||||||
mov cx, 0x0700 + 'e'
|
mov cx, 0x0700 + 'e'
|
||||||
mov [CONSOLE_MEMORY+160*8+4*2], cx
|
mov [CONSOLE_MEMORY+160*8+4*2], cx
|
||||||
|
|
||||||
|
; at this point paging is still disabled but the PDBR is valid and
|
||||||
|
; points to a page directory that has all of RAM mapped to the
|
||||||
|
; beginning of the kernel's virtual address space, and the entire
|
||||||
|
; kernel mapped in above 0xE000_0000.
|
||||||
|
|
||||||
idle_loop:
|
idle_loop:
|
||||||
hlt
|
hlt
|
||||||
jmp idle_loop
|
jmp idle_loop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user