1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:07:45 +00:00

Kernel/aarch64: Force kmalloc to return 16 byte aligned pointers

KUBSAN complained about a misaligned address when trying to construct
the Thread class.
This commit is contained in:
Timon Kruiper 2022-10-20 12:18:24 +02:00 committed by Gunnar Beutner
parent 179cb7b2d0
commit 8fe3c50b30

View file

@ -20,7 +20,7 @@ class Heap {
struct AllocationHeader {
size_t allocation_size_in_chunks;
#if ARCH(X86_64)
#if ARCH(X86_64) || ARCH(AARCH64)
// FIXME: Get rid of this somehow
size_t alignment_dummy;
#endif