Better user programs with a special std. Sleep and exit are calling scheduler instead of wfi.

This commit is contained in:
2026-02-21 18:29:27 +01:00
parent 235f17e7cf
commit 8a8034bd11
25 changed files with 263 additions and 210 deletions

5
ilm.ld
View File

@@ -2,17 +2,16 @@
* ld directives the for barmetal RISCV
*/
OUTPUT_ARCH(riscv)
ENTRY(entry)
ENTRY(_start)
MEMORY {
RAM (wxa) : ORIGIN = 0x80000000, LENGTH = 128M
}
SECTIONS {
/* The kernel starts at 0x80000000 */
. = 0x80000000;
.text : {
KEEP(*(.text.entry))
KEEP(*(.text._start))
*(.text .text.*)
} > RAM