arch/i386: Boot to kernel main() with proper initial segmentation/paging setup
This commit is contained in:
@ -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 = .;
|
||||
}
|
||||
|
Reference in New Issue
Block a user