From ab2ef5a41599ea10d069438fddf518fe268d54f4 Mon Sep 17 00:00:00 2001 From: Quinten Kock Date: Sat, 26 Dec 2020 23:24:12 +0100 Subject: [PATCH] reduce static kernel memory --- kernel/src/allocator/kalloc.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/allocator/kalloc.zig b/kernel/src/allocator/kalloc.zig index c72ee54..391862b 100644 --- a/kernel/src/allocator/kalloc.zig +++ b/kernel/src/allocator/kalloc.zig @@ -1,5 +1,5 @@ const std = @import("std"); -var buf: [1024*1024]u8 = undefined; +var buf: [512*1024]u8 = undefined; pub var KAlloc = std.heap.FixedBufferAllocator.init(&buf); // pub var KAlloc = std.heap.GeneralPurposeAllocator(.{.thread_safe=false}){.backing_allocator = &GlobAlloc.allocator};