diff options
author | Marvin Borner | 2020-05-31 20:26:40 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-31 20:26:40 +0200 |
commit | eaadde5453e33af6826bb03488991aab0297d3dd (patch) | |
tree | f52d06c0841b664abcab547481dca41f4cfb30ff /src/kernel/memory/alloc.c | |
parent | 45a5ecc72d8e700614a0751f0e7ec68199885b77 (diff) |
OMG
Diffstat (limited to 'src/kernel/memory/alloc.c')
-rw-r--r-- | src/kernel/memory/alloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |