Przeglądaj źródła

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

Gunnar Beutner 4 lat temu
rodzic
commit
078eeb7bb0
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      Kernel/Heap/Heap.h

+ 4 - 0
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];
     };