mirror of
https://github.com/iceHtwoO/novaOS.git
synced 2026-04-17 04:32:27 +00:00
feat: Enhance MMU by separating sections and configuring permissions
This commit is contained in:
25
link.ld
25
link.ld
@@ -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 = .;
|
||||
|
||||
Reference in New Issue
Block a user