From 757f8f8c654be800976b5b2c43b72b4956db75d8 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 24 Oct 2023 08:48:26 -0400 Subject: [PATCH] Make A1.allocate() zero returned memory --- src/hulk/hurl/a1.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hulk/hurl/a1.d b/src/hulk/hurl/a1.d index f7bf2c5..737cf09 100644 --- a/src/hulk/hurl/a1.d +++ b/src/hulk/hurl/a1.d @@ -7,6 +7,7 @@ import hulk.hurl; import hulk.hippo; import hulk.util; import hulk.pagetable; +import hulk.memory; /** * The A1 memory allocator is a one-shot memory allocator for kernel memory @@ -48,6 +49,8 @@ struct A1 current_limit += PAGE_SIZE; } + memset64(cast(void *)address, 0, size / 8); + return cast(void *)address; }