mirror of
https://github.com/iceHtwoO/novaOS.git
synced 2026-04-17 04:32:27 +00:00
feat: move EL0 stack to virtual space
This commit is contained in:
18
link.ld
18
link.ld
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user