mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-12-17 20:34:36 +03:00
lesson 23, steps 1 and 2
This commit is contained in:
@@ -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 $
|
||||
|
||||
Reference in New Issue
Block a user