From eaadde5453e33af6826bb03488991aab0297d3dd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 31 May 2020 20:26:40 +0200 Subject: OMG --- src/kernel/memory/alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/kernel/memory/alloc.c') diff --git a/src/kernel/memory/alloc.c b/src/kernel/memory/alloc.c index 904be3a..d1d8b47 100644 --- a/src/kernel/memory/alloc.c +++ b/src/kernel/memory/alloc.c @@ -162,8 +162,7 @@ static struct liballoc_major *allocate_new_page(u32 size) void *malloc(u32 req_size) { - if (!paging_enabled) - warn("Mallocing while paging is disabled!"); + assert(paging_enabled); int started_bet = 0; u64 best_size = 0; -- cgit v1.2.3