summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dev/ZKA/Sources/Heap.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/dev/ZKA/Sources/Heap.cxx b/dev/ZKA/Sources/Heap.cxx
index 1616912e..21ee6d67 100644
--- a/dev/ZKA/Sources/Heap.cxx
+++ b/dev/ZKA/Sources/Heap.cxx
@@ -9,6 +9,7 @@
#include <KernelKit/Heap.hxx>
#include <NewKit/Crc32.hxx>
#include <NewKit/PageMgr.hxx>
+#include <NewKit/Utils.hxx>
//! @file KernelHeap.cxx
//! @brief Kernel heap allocator.
@@ -113,6 +114,8 @@ namespace Kernel
heap_info_ptr->fUser = user;
heap_info_ptr->fPresent = Yes;
+ rt_set_memory(heap_info_ptr->fPadding, 0, kKernelHeapHeaderPaddingSz);
+
auto result = reinterpret_cast<VoidPtr>(heap_info_ptr->fHeapPtr);
kLatestAllocation = heap_info_ptr;