fixing up paging issues
This commit is contained in:
@@ -1,30 +1,35 @@
|
||||
ENTRY(_start)
|
||||
|
||||
KERNEL_VMA = 0xC0000000;
|
||||
KERNEL_LMA = 0x00200000;
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
. = 0xC0100000;
|
||||
. = KERNEL_VMA + KERNEL_LMA;
|
||||
__kernel_start = .;
|
||||
.text : AT(ADDR(.text) - KERNEL_VMA)
|
||||
{
|
||||
*(.multiboot)
|
||||
*(.text*)
|
||||
}
|
||||
|
||||
.text BLOCK(4K) : ALIGN(4K)
|
||||
{
|
||||
*(.multiboot)
|
||||
*(.text)
|
||||
}
|
||||
.rodata : AT(ADDR(.rodata) - KERNEL_VMA)
|
||||
{
|
||||
*(.rodata*)
|
||||
}
|
||||
|
||||
.rodata BLOCK(4K) : ALIGN(4K)
|
||||
{
|
||||
*(.rodata)
|
||||
}
|
||||
.data : AT(ADDR(.data) - KERNEL_VMA)
|
||||
{
|
||||
*(.data*)
|
||||
}
|
||||
|
||||
.data BLOCK(4K) : ALIGN(4K)
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
.bss : AT(ADDR(.bss) - KERNEL_VMA)
|
||||
{
|
||||
__bss_start = .;
|
||||
*(.bss*)
|
||||
*(COMMON)
|
||||
__bss_end = .;
|
||||
}
|
||||
|
||||
.bss BLOCK(4K) : ALIGN(4K)
|
||||
{
|
||||
*(COMMON)
|
||||
*(.bss)
|
||||
}
|
||||
__kernel_end = .;
|
||||
__kernel_end = .;
|
||||
}
|
||||
Reference in New Issue
Block a user