summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-20 11:26:32 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-20 20:54:32 -0400
commit73113c8ded5ff18b0268bbe069fe132caf9518b9 (patch)
tree6dfe2235b33dfada06c602dd48876458e37f5a28 /config
parentfix code segment (retfq) on long mode edge case (kvm) (diff)
downloadcomus-73113c8ded5ff18b0268bbe069fe132caf9518b9.tar.gz
comus-73113c8ded5ff18b0268bbe069fe132caf9518b9.tar.bz2
comus-73113c8ded5ff18b0268bbe069fe132caf9518b9.zip
fix term/gpu memory OOB error, add dynamic kernel identity map with N_IDENT_PTS
Diffstat (limited to 'config')
-rw-r--r--config/kernel.ld12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/kernel.ld b/config/kernel.ld
index 52e9088..bcacf61 100644
--- a/config/kernel.ld
+++ b/config/kernel.ld
@@ -9,27 +9,39 @@ SECTIONS
. = ALIGN(0x1000);
.text : {
+ text_start = .;
*(.multiboot)
*(.text)
+ *(.text.*)
+ text_end = .;
}
. = ALIGN(0x1000);
.rodata : {
+ rodata_start = .;
*(.rodata)
+ *(.rodata.*)
+ rodata_end = .;
}
. = ALIGN(0x1000);
.data : {
+ data_start = .;
*(.data)
+ *(.data.*)
+ data_end = .;
}
. = ALIGN(0x1000);
.bss : {
+ bss_start = .;
*(COMMON)
*(.bss)
+ *(.bss.*)
+ bss_end = .;
}
kernel_end = .;