Improve debuggability by adding .func/.endfunc around functions.
[pintos-anon] / src / threads / start.S
1 #### The loader needs to have some way to know the kernel's entry
2 #### point, that is, the address to which it should jump to start the
3 #### kernel.  We handle this by writing the linker script kernel.lds.S
4 #### so that this module appears at the very beginning of the kernel
5 #### image, and then using that as the entry point.
6
7 .section .start
8         
9 .globl start
10 .func start
11         # Call main.
12 start:  call main
13
14         # main() should not return, but if it does, spin.
15 1:      jmp 1b
16 .endfunc