lesson 23, steps 1 and 2

This commit is contained in:
Carlos
2015-08-18 10:14:06 +02:00
parent 0134c5625c
commit 92ff191c3d
4 changed files with 54 additions and 6 deletions

View File

@@ -1,4 +1,7 @@
global _start;
[bits 32]
[extern main] ; Define calling point. Must have same name as kernel.c 'main' function
call main ; Calls the C function. The linker will know where it is placed in memory
jmp $
_start:
[extern kernel_main] ; Define calling point. Must have same name as kernel.c 'main' function
call kernel_main ; Calls the C function. The linker will know where it is placed in memory
jmp $