feat: Enhance MMU by separating sections and configuring permissions

This commit is contained in:
2026-03-11 21:21:30 +01:00
parent 6af820815d
commit 34a73f0095
7 changed files with 151 additions and 67 deletions

25
link.ld
View File

@@ -27,34 +27,23 @@ SECTIONS {
KEEP(*(.vector_table))
}
.translation_table_l1 ALIGN(4096) : {
__translation_table_l1_start = .;
. += 4096;
__translation_table_l1_end = .;
}
.translation_table_l2 ALIGN(4096) : {
__translation_table_l2_start = .;
. += 4096;
__translation_table_l2_end = .;
}
.heap : ALIGN(16)
{
.heap ALIGN(16): {
__heap_start = .;
. += 100K; #100kB
__heap_end = .;
}
.stack : ALIGN(16)
{
.stack ALIGN(16): {
__stack_start = .;
. += 10K; #10kB stack
__stack_end = .;
}
.stack_el0 : ALIGN(2M)
{
. = ALIGN(2M);
__kernel_end = .;
.stack_el0 : {
__stack_start_el0 = .;
. += 10K; #10kB stack
__stack_end_el0 = .;