diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-03-08 15:43:03 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-03-08 15:43:03 -0500 |
commit | a4d357638c572179adae156c62c850f5a1cf369f (patch) | |
tree | 918c76ae53a5590b767284f13ccc848c7eeb773d /src/rombios32.lds.S | |
parent | a9096f405a04b46a21eac4ed5263143be2ef2b4f (diff) | |
download | seabios-a4d357638c572179adae156c62c850f5a1cf369f.tar.gz |
Port rombios32 code from bochs-bios.
This adds acpi, smbios, pci init, etc.
Changes from original rombios32.c code:
* Header file translation.
* Use common functions already in code (eg, outb, memset, bios_printf,
usleep)
* Implement trampoline for disabling bios shadowing (rombios32 code
actually runs in the 0xf0000 area).
* Copy asm code from rombios32start.S to an asm() statement in C
code.
Diffstat (limited to 'src/rombios32.lds.S')
-rw-r--r-- | src/rombios32.lds.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rombios32.lds.S b/src/rombios32.lds.S index 78546cf3..bb17cf09 100644 --- a/src/rombios32.lds.S +++ b/src/rombios32.lds.S @@ -18,8 +18,9 @@ SECTIONS _text32_start = . ; .text : { *(.text) } .rodata : { *(.rodata) } - . = ALIGN(16); .data : { *(.data) } + // XXX - should change code so it doesn't require global variables. + . = 0x00040000; __bss_start = . ; .bss : { *(.bss) *(COMMON) } _end = . ; |