realigned assembly a bit
git-svn-id: svn://anubis/hos/trunk@18 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
parent
1b0da72e5a
commit
8fe8d78051
@ -14,9 +14,11 @@
|
||||
|
||||
%define PAGE_SIZE 0x1000 ; 4KB pages
|
||||
|
||||
; Get these symbols from the linker
|
||||
; Symbols from the linker
|
||||
extern _end, _bss
|
||||
|
||||
; Symbols from C
|
||||
extern k_mbsave
|
||||
|
||||
;-------------------------------------------------------
|
||||
[section .text]
|
||||
@ -69,6 +71,15 @@ segmented_start:
|
||||
mov ax, 0x0700 + 'b'
|
||||
mov [VIRTUAL_OFFSET+0xB8000+160*8+1*2], ax
|
||||
|
||||
; add ebx, VIRTUAL_OFFSET
|
||||
; push eax
|
||||
; push ebx ; pointer to multiboot info struct
|
||||
; call k_mbsave
|
||||
; add esp, 8
|
||||
|
||||
; mov ax, 0x0700 + 'c'
|
||||
; mov [VIRTUAL_OFFSET+0xB8000+160*8+2*2], ax
|
||||
|
||||
idle_loop:
|
||||
hlt
|
||||
jmp idle_loop
|
||||
|
Loading…
x
Reference in New Issue
Block a user