1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:18:11 +00:00

Kernel: Make addresses returned by kmalloc() properly aligned for x86_64

This commit is contained in:
Gunnar Beutner 2021-06-26 01:17:33 +02:00 committed by Andreas Kling
parent 1e20dd2a45
commit 078eeb7bb0

View file

@ -20,6 +20,10 @@ class Heap {
struct AllocationHeader {
size_t allocation_size_in_chunks;
#if ARCH(X86_64)
// FIXME: Get rid of this somehow
size_t alignment_dummy;
#endif
u8 data[0];
};