From dbd86c48a330dc24418d0c20c8aa90149b9f904c Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Wed, 1 May 2024 17:50:06 +0200 Subject: [PATCH] Kmem: fix alignment for heap struct --- src/arch/x86/kmem.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86/kmem.hpp b/src/arch/x86/kmem.hpp index b58991778..ccb200ac4 100644 --- a/src/arch/x86/kmem.hpp +++ b/src/arch/x86/kmem.hpp @@ -20,7 +20,7 @@ struct HeapEntry { struct HeapEntry *prev; uint64_t len; char data[] __attribute__((aligned(16))); -} __attribute__((packed, aligned(1))); +} __attribute__((packed, aligned(16))); extern struct HeapEntry *KERN_HeapBegin; extern uintptr_t KERN_HeapEnd; // Past the end