kern

view src/boot/mboot.S @ 15:7f9af8cddc96

removed redundant zero-fill in multiboot header
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Mar 2011 16:59:49 +0200
parents b11a86695493
children 2cbc2b922e49
line source
1 #define MAGIC 0x1badb002
2 #define FLAGS 0
3 #define STACK_SIZE 0x4000
5 .text
6 .align 4
8 /* multiboot header */
9 .long MAGIC
10 .long FLAGS
11 .long -(MAGIC + FLAGS) /* checksum */
13 .globl kentry
14 kentry:
15 /* setup a temporary kernel stack */
16 movl $(stack + STACK_SIZE), %esp
17 /* reset eflags register */
18 pushl $0
19 popf
20 /* call the kernel main function */
21 call kmain
22 /* we dropped out of main, halt the CPU */
23 cli
24 hlt
26 /* space for the temporary kernel stack */
27 .comm stack, STACK_SIZE