3 # bootstrap assembly stub to setup the processor
4 # and call the kernel main function
5 ################################################
7 # declare multiboot header
11 .set FLAGS, ALIGN | MEMINFO
12 .set MAGIC, 0x1BADB002
13 .set CHECKSUM, -(MAGIC + FLAGS)
21 # set up a temporary stack
23 .section .bootstrap_stack
28 # we are now ready to start working
32 .type _start, @function
35 # we are now in kernel mode.
36 # next, set up the actual stack
39 # then jump in the actual kernel
42 # if we ever return from the kernel, we put the cpu in an idle loop
48 # useful for debugging, call tracing etc
49 .size _start, . - _start