summaryrefslogtreecommitdiff
path: root/Kernel/Arch/x86_64
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2023-03-24 20:31:53 +0300
committerJelle Raaijmakers <jelle@gmta.nl>2023-04-28 09:23:30 +0200
commit897c4e5145474d55b247a4a3b5e6bf5420279e2f (patch)
tree8b29b87fde3caeba14951b5b48526c9452067469 /Kernel/Arch/x86_64
parent2a1e58f8cc0dfe4f1be920bed909aaeeca963a9b (diff)
downloadserenity-897c4e5145474d55b247a4a3b5e6bf5420279e2f.zip
Kernel/x86: Bake the Prekernel and the Kernel into one image
The new baked image is a Prekernel and a Kernel baked together now, so essentially we no longer need to pass the Prekernel as -kernel and the actual kernel image as -initrd to QEMU, leaving the option to pass an actual initrd or initramfs module later on with multiboot.
Diffstat (limited to 'Kernel/Arch/x86_64')
-rw-r--r--Kernel/Arch/x86_64/linker.ld5
1 files changed, 2 insertions, 3 deletions
diff --git a/Kernel/Arch/x86_64/linker.ld b/Kernel/Arch/x86_64/linker.ld
index e11648fe13..e9b7a870f1 100644
--- a/Kernel/Arch/x86_64/linker.ld
+++ b/Kernel/Arch/x86_64/linker.ld
@@ -69,6 +69,8 @@ SECTIONS
start_of_kernel_data = .;
*(.data*)
end_of_kernel_data = .;
+ . = ALIGN(4K);
+ *(.heap)
} :data
.ro_after_init ALIGN(4K) : AT(ADDR(.ro_after_init))
@@ -85,9 +87,6 @@ SECTIONS
*(COMMON)
*(.bss*)
end_of_kernel_bss = .;
-
- . = ALIGN(4K);
- *(.heap)
} :bss
.dynamic ALIGN(4K) : AT (ADDR(.dynamic))