1
0

arch/i386: Boot to kernel main() with proper initial segmentation/paging setup

This commit is contained in:
2012-12-17 00:35:23 -05:00
parent cee0ac7dda
commit c51062ce87
5 changed files with 153 additions and 60 deletions

View File

@ -2,9 +2,12 @@ ENTRY (start)
SECTIONS
{
. = 0x00100000;
.text ALIGN (0x1000) : { *(.text*) *(.rodata*) }
.init : {
. = 0xc0100000;
kernel_start = .;
.text ALIGN(0x1000) : AT(ADDR(.text) - 0xc0000000) {
*(.text*) *(.rodata*)
}
.init : AT(ADDR(.init) - 0xc0000000) {
early_initcalls_start = .;
*(.earlyinitcalls*)
early_initcalls_end = .;
@ -12,7 +15,13 @@ SECTIONS
*(.driversubsysinitcalls*)
*(.deviceinitcalls*)
initcalls_end = .;
*(.init*)
}
.data ALIGN (0x1000) : { *(.data*) }
.bss : { *(.bss*) *(COMMON*) }
.data ALIGN(0x1000) : AT(ADDR(.data) - 0xc0000000) {
*(.data*)
}
.bss : AT(ADDR(.bss) - 0xc0000000) {
*(.bss*) *(COMMON*)
}
kernel_end = .;
}