From 4f03e4179df51860524beba5de87397c2d6a2074 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 31 May 2020 22:46:18 +0200 Subject: Some memory display fixes --- src/kernel/memory/paging.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/kernel/memory') diff --git a/src/kernel/memory/paging.c b/src/kernel/memory/paging.c index 432b51c..5ed3fdd 100644 --- a/src/kernel/memory/paging.c +++ b/src/kernel/memory/paging.c @@ -190,8 +190,7 @@ u32 paging_get_used_pages() u32 n = 0; for (u32 i = 0; i < PAGE_COUNT; i++) { for (u32 j = 0; j < PAGE_COUNT; j++) { - u8 flags = page_tables[i][j] & PT_USED; - if (flags == 1) + if (page_tables[i][j] & PT_USED) n++; } } -- cgit v1.2.3