summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2022-08-06 10:14:07 +0200
committerLinus Groh <mail@linusgroh.de>2022-08-06 14:00:54 +0100
commitc92e68da38dd7892a4afd6e44383cffcc188c46f (patch)
tree1f5b2a084db2df5d8b45d922bd6122f59dfea74b
parent22aea9f6594045fdb29de966d6c712af03f1c915 (diff)
downloadserenity-c92e68da38dd7892a4afd6e44383cffcc188c46f.zip
Kernel: Rounding size of bss to be a multiple of 8 for aarch64 linker.ld
This fixes a bug where the bss was not completely zeroed out. This bug showed up when running the aarch64 Kernel baremetal on a Raspberry Pi.
-rw-r--r--Kernel/Arch/aarch64/linker.ld2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Arch/aarch64/linker.ld b/Kernel/Arch/aarch64/linker.ld
index 38cbb07767..ea81f81bc5 100644
--- a/Kernel/Arch/aarch64/linker.ld
+++ b/Kernel/Arch/aarch64/linker.ld
@@ -78,4 +78,4 @@ SECTIONS
page_tables_phys_end = .;
}
-size_of_bss_divided_by_8 = (end_of_bss - start_of_bss) / 8;
+size_of_bss_divided_by_8 = (end_of_bss - start_of_bss + 7) / 8;