Make linking of start.S less brittle.
[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 .globl start
8 .section .start
9
10 start:  call main
11
12         # If main returns, spin.
13 1:      jmp 1b