kern
diff src/mboot.S @ 1:ebe5e0e44a9d
pretty much finished the code for article 1, might do minor adjustments though
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 02 Dec 2010 08:45:41 +0200 |
parents | 662ff2170531 |
children | af6f4adc43d6 |
line diff
1.1 --- a/src/mboot.S Wed Dec 01 22:02:42 2010 +0200 1.2 +++ b/src/mboot.S Thu Dec 02 08:45:41 2010 +0200 1.3 @@ -3,19 +3,15 @@ 1.4 #define STACK_SIZE 0x4000 1.5 1.6 .text 1.7 - .globl _start 1.8 -_start: 1.9 - /* jump over the multiboot header onto the startup code */ 1.10 - jmp kentry 1.11 - 1.12 .align 4 1.13 + 1.14 /* multiboot header */ 1.15 -mboot_hdr: 1.16 .long MAGIC 1.17 .long FLAGS 1.18 .long -(MAGIC + FLAGS) /* checksum */ 1.19 .fill 5, 4 /* fill out the rest with zeroes */ 1.20 1.21 + .globl kentry 1.22 kentry: 1.23 /* setup a temporary kernel stack */ 1.24 movl $(stack + STACK_SIZE), %esp