接着上个

This commit is contained in:
2026-04-23 20:00:47 +08:00
parent 088dab5a72
commit 43557b6d71
91 changed files with 23911 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
OUTPUT_FORMAT(elf64-littleaarch64)
ENTRY(_start)
PHDRS {
text PT_LOAD FLAGS(5);
rodata PT_LOAD FLAGS(4);
data PT_LOAD FLAGS(7);
}
SECTIONS {
. = 0x100000;
.text : {
*(.text .text.*)
} :text
.rodata : {
KEEP(*(.limine_requests_start))
KEEP(*(.limine_requests))
KEEP(*(.limine_requests_end))
*(.rodata .rodata.*)
} :rodata
.data : {
*(.data .data.*)
} :data
.bss : {
*(COMMON)
*(.bss .bss.*)
} :data
/DISCARD/ : {
*(.comment)
*(.eh_frame)
*(.note .note.*)
}
}

View File

@@ -0,0 +1,7 @@
#include <clks/cpu.h>
#include <clks/kernel.h>
void _start(void) {
clks_kernel_main();
clks_cpu_halt_forever();
}