diff options
author | Timon Kruiper <timonkruiper@gmail.com> | 2022-08-06 10:14:07 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-06 14:00:54 +0100 |
commit | c92e68da38dd7892a4afd6e44383cffcc188c46f (patch) | |
tree | 1f5b2a084db2df5d8b45d922bd6122f59dfea74b | |
parent | 22aea9f6594045fdb29de966d6c712af03f1c915 (diff) | |
download | serenity-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.ld | 2 |
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; |