diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-26 01:17:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-26 11:08:52 +0200 |
commit | 078eeb7bb06395097c17a956d847e2bef7ea3b31 (patch) | |
tree | fa25c6546bb5c9f8b72dcd37c89f3ce8141957a4 /Kernel/Heap | |
parent | 1e20dd2a45cd668d3bf554f8a8949db8a9c34400 (diff) | |
download | serenity-078eeb7bb06395097c17a956d847e2bef7ea3b31.zip |
Kernel: Make addresses returned by kmalloc() properly aligned for x86_64
Diffstat (limited to 'Kernel/Heap')
-rw-r--r-- | Kernel/Heap/Heap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/Heap/Heap.h b/Kernel/Heap/Heap.h index 88786e890e..58f55db983 100644 --- a/Kernel/Heap/Heap.h +++ b/Kernel/Heap/Heap.h @@ -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]; }; |