feat: move EL0 stack to virtual space

This commit is contained in:
2026-03-19 10:43:45 +01:00
parent cba7073ae5
commit 778b3ed80c
5 changed files with 76 additions and 73 deletions

18
link.ld
View File

@@ -4,14 +4,15 @@ SECTIONS {
.text ALIGN(4) : {
KEEP(*(.text._start))
*(.text .text.*)
. = ALIGN(4K);
__text_end = .;
}
.rodata : {
*(.rodata .rodata.*)
}
.data ALIGN(2M) : {
_data = .;
.data : {
*(.data .data.*)
}
@@ -21,6 +22,10 @@ SECTIONS {
__bss_end = .;
}
. = ALIGN(2M);
__share_end = .;
.vector_table ALIGN(2K) : {
KEEP(*(.vector_table))
}
@@ -36,15 +41,6 @@ SECTIONS {
. = ALIGN(2M);
__kernel_end = .;
.stack_el0 : {
__stack_start_el0 = .;
. += 10K; #10kB stack
__stack_end_el0 = .;
}
. = ALIGN(2M);
_end = .;
}
__bss_size = (__bss_end - __bss_start) >> 3;