- specify output architecture

- rename entry section


git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@144 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
stefan 2010-09-07 21:07:27 +00:00
parent e482442e36
commit 2819d27885
2 changed files with 4 additions and 2 deletions

View file

@ -24,7 +24,7 @@
[BITS 32]
; We use a special name to map this section at the begin of our kernel
; => Multiboot needs its magic number at the begin of the kernel
SECTION multiboot
SECTION .mboot
global start
start:
mov esp, _sys_stack ; This points the stack to our new stack area
@ -55,6 +55,7 @@ mboot:
dd end
dd start
ALIGN 4
stublet:
; interpret multiboot information
extern multiboot_init

View file

@ -1,4 +1,5 @@
OUTPUT_FORMAT("binary")
OUTPUT_ARCH("i386")
ENTRY(start)
phys = 0x00100000;
@ -7,7 +8,7 @@ SECTIONS
.text phys : AT(phys) {
kernel_start = .;
code = .;
*(multiboot)
*(.mboot)
*(.text)
*(.rodata)
. = ALIGN(4096);