fixing up paging issues

This commit is contained in:
2026-06-15 18:09:04 -04:00
parent ac4b510221
commit 25da0f6a71
7 changed files with 101 additions and 85 deletions

View File

@@ -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 = .;
}