summaryrefslogtreecommitdiff
path: root/Kernel/Arch/aarch64
diff options
context:
space:
mode:
authorMarco Cutecchia <marco.cutecchia@outlook.it>2023-03-17 22:15:40 +0100
committerLinus Groh <mail@linusgroh.de>2023-03-25 16:50:36 +0000
commitd09852642cecbc23ff8faba9b5a810601e7b386a (patch)
tree9d942b7ef66d5a76607096d66d662bc70b48d521 /Kernel/Arch/aarch64
parentf3363c108806cf2d647464342322d39afc33235a (diff)
downloadserenity-d09852642cecbc23ff8faba9b5a810601e7b386a.zip
Revert "Kernel/aarch64: Embed disk image into kernel binary"
This reverts commit 3b65fd64fc3b0a40607d45da9bc2703ac58612fd. This is no longer needed as we don't use the ramdisk anymore Co-authored-by: Ollrogge <nils-ollrogge@outlook.de>
Diffstat (limited to 'Kernel/Arch/aarch64')
-rw-r--r--Kernel/Arch/aarch64/Dummy.cpp3
-rw-r--r--Kernel/Arch/aarch64/init.cpp12
-rw-r--r--Kernel/Arch/aarch64/linker.ld5
3 files changed, 3 insertions, 17 deletions
diff --git a/Kernel/Arch/aarch64/Dummy.cpp b/Kernel/Arch/aarch64/Dummy.cpp
index 101adf32f1..feb3d84992 100644
--- a/Kernel/Arch/aarch64/Dummy.cpp
+++ b/Kernel/Arch/aarch64/Dummy.cpp
@@ -32,6 +32,9 @@ bool g_pci_access_is_disabled_from_commandline { true };
// x86 init
+multiboot_module_entry_t multiboot_copy_boot_modules_array[16];
+size_t multiboot_copy_boot_modules_count;
+
extern "C" {
READONLY_AFTER_INIT PhysicalAddress start_of_prekernel_image;
READONLY_AFTER_INIT PhysicalAddress end_of_prekernel_image;
diff --git a/Kernel/Arch/aarch64/init.cpp b/Kernel/Arch/aarch64/init.cpp
index 326b32051e..b407c49ab8 100644
--- a/Kernel/Arch/aarch64/init.cpp
+++ b/Kernel/Arch/aarch64/init.cpp
@@ -45,12 +45,6 @@ uintptr_t __stack_chk_guard;
READONLY_AFTER_INIT bool g_in_early_boot;
-extern "C" const u32 disk_image_start;
-extern "C" const u32 disk_image_size;
-
-multiboot_module_entry_t multiboot_copy_boot_modules_array[16];
-size_t multiboot_copy_boot_modules_count;
-
namespace Kernel {
static void draw_logo(u8* framebuffer_data);
@@ -119,12 +113,6 @@ extern "C" [[noreturn]] void init()
multiboot_memory_map = mmap;
multiboot_memory_map_count = 1;
- multiboot_flags = 0x4;
- multiboot_copy_boot_modules_count = 1;
- auto disk_image_start_physical_addr = ((FlatPtr)&disk_image_start - kernel_load_base);
- multiboot_copy_boot_modules_array[0].start = disk_image_start_physical_addr;
- multiboot_copy_boot_modules_array[0].end = disk_image_start_physical_addr + disk_image_size;
-
dbgln("Welcome to Serenity OS!");
dbgln("Imagine this being your ideal operating system.");
dbgln("Observed deviations from that ideal are shortcomings of your imagination.");
diff --git a/Kernel/Arch/aarch64/linker.ld b/Kernel/Arch/aarch64/linker.ld
index 6732893a09..e80bf29e5c 100644
--- a/Kernel/Arch/aarch64/linker.ld
+++ b/Kernel/Arch/aarch64/linker.ld
@@ -80,11 +80,6 @@ SECTIONS
page_tables_phys_end = .;
end_of_kernel_image = .;
-
- disk_image ALIGN(4K) : AT (ADDR(disk_image) - KERNEL_MAPPING_BASE)
- {
- *(disk_image)
- }
}
size_of_bss_divided_by_8 = (end_of_bss - start_of_bss + 7) / 8;