68c604cc276b33a6701dab250d16784de3d45bd0
[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         # Terminate the backtrace that debug_backtrace() would output.
12         movl $0, %ebp
13
14         # Call main.
15 start:  call main
16
17         # main() should not return, but if it does, spin.
18 1:      jmp 1b
19 .endfunc