user app can invoke kernel syscall!!!!

This commit is contained in:
2025-08-26 18:44:46 -06:00
parent 6dcdd88a0f
commit c4f2c6cffb
12 changed files with 201 additions and 170 deletions

33
user-apps/memory.x Normal file
View File

@@ -0,0 +1,33 @@
MEMORY
{
/* Must match the USERAPP region in the kernel linker script */
RAM : ORIGIN = 0x20010000, LENGTH = 192K
}
SECTIONS
{
/* Reserve first 1KB for patchable symbols */
.user_reloc (NOLOAD) : ALIGN(4)
{
__user_reloc_start = .;
KEEP(*(.user_reloc*));
__user_reloc_end = .;
} > RAM
.text : ALIGN(4)
{
*(.text .text.*);
*(.rodata .rodata.*);
} > RAM
.data : ALIGN(4)
{
*(.data .data.*);
} > RAM
.bss : ALIGN(4)
{
*(.bss .bss.*);
*(COMMON);
} > RAM
}