summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
authordzwdz2022-06-30 17:27:48 +0200
committerdzwdz2022-06-30 17:27:48 +0200
commit38d9f87c5086ca132fea43912d6f6ad777c2c852 (patch)
tree3f236c877d8adb299198af4760d903f900d381fc /src/kernel/proc.c
parentbf4f2bb63ed01026b1078f5f7ebfc005bb4bf6d3 (diff)
kernel/linker: rename .text.early to .shared
It's not really just a text section, as it's writeable too. Makes gcc shut up about invalid section attributes.
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index 636c237..90e24f7 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -26,9 +26,9 @@ struct process *process_seed(struct kmain_info *info) {
pagedir_map(process_first->pages, (userptr_t)~PAGE_MASK, page_alloc(1), true, true);
process_first->regs.esp = (userptr_t) ~0xF;
- // map .text.early
- extern char _text_early_len;
- for (size_t p = 0; p < (size_t)&_text_early_len; p += PAGE_SIZE)
+ // map .shared
+ extern char _shared_len;
+ for (size_t p = 0; p < (size_t)&_shared_len; p += PAGE_SIZE)
pagedir_map(process_first->pages, (userptr_t)p, (void*)p, false, true);
// map the init module as rw