lesson 13 comments

pull/6/head
Carlos Fenollosa 10 years ago
parent 4121d2f266
commit 18c8989d33

@ -1,4 +1,4 @@
/* This will force us to create a kernel entry function */ /* This will force us to create a kernel entry function instead of jumping to kernel.c:0x00 */
void dummy_test_entrypoint() { void dummy_test_entrypoint() {
} }

@ -1,4 +1,4 @@
[bits 32] [bits 32]
[extern main] ; Define calling point. Must haveSame name as kernel.c 'main' function [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 call main ; Calls the C function. The linker will know where it is placed in memory
jmp $ jmp $

Loading…
Cancel
Save