Paging should work ish, need to complete page reservation for kernel app. need to set stack pointer, then we are ready to hit it.

This commit is contained in:
ivajon
2026-05-11 18:16:33 +02:00
parent c68d3fab14
commit 4c2a5b1068
8 changed files with 970 additions and 30 deletions

28
kernel/link.x Normal file
View File

@@ -0,0 +1,28 @@
ENTRY(efi_main)
SECTIONS {
. = 0x100000; /* or whatever uefi loads you at */
__kernel_start = .;
. = ALIGN(4K);
.text : { *(.text .text.*) }
. = ALIGN(4K);
.rodata : { *(.rodata .rodata.*) }
. = ALIGN(4K);
.data : { *(.data .data.*) }
. = ALIGN(4K);
.bss : { *(.bss .bss.*) }
. = ALIGN(4K);
__kernel_end = .;
/DISCARD/ : {
*(.eh_frame)
*(.eh_frame_hdr)
*(.note.*)
*(.comment)
}
}