added k_main.cc, need to set up a stack before calling k_main()
git-svn-id: svn://anubis/hos/trunk@51 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
parent
594625b0fa
commit
cf2d28f5ce
@ -16,7 +16,7 @@
|
|||||||
extern _end, _bss
|
extern _end, _bss
|
||||||
|
|
||||||
; Symbols from C
|
; Symbols from C
|
||||||
extern k_bootstrap, bootstrap_stack, mm_gdtr
|
extern k_bootstrap, bootstrap_stack, mm_gdtr, k_main
|
||||||
|
|
||||||
;-------------------------------------------------------
|
;-------------------------------------------------------
|
||||||
[section .text]
|
[section .text]
|
||||||
@ -107,6 +107,9 @@ segmentation_disabled:
|
|||||||
mov cx, 0x0700 + 'f'
|
mov cx, 0x0700 + 'f'
|
||||||
mov [CONSOLE_MEMORY+160*8+5*2], cx
|
mov [CONSOLE_MEMORY+160*8+5*2], cx
|
||||||
|
|
||||||
|
; TODO: set up a stack!
|
||||||
|
; call k_main
|
||||||
|
|
||||||
idle_loop:
|
idle_loop:
|
||||||
hlt
|
hlt
|
||||||
jmp idle_loop
|
jmp idle_loop
|
||||||
|
4
kernel/boot/k_main.cc
Normal file
4
kernel/boot/k_main.cc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
void k_main()
|
||||||
|
{
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user