aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/mm.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/mm.c')
-rw-r--r--kernel/features/mm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/features/mm.c b/kernel/features/mm.c
index e60e2b5..7a39b33 100644
--- a/kernel/features/mm.c
+++ b/kernel/features/mm.c
@@ -136,6 +136,7 @@ static void physical_page_set_free(u32 address)
CLEAR void physical_set_total(u32 total)
{
+ assert(total > 0);
memory_total = total;
}