diff options
author | Marvin Borner | 2020-05-31 22:46:18 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-31 22:46:18 +0200 |
commit | 4f03e4179df51860524beba5de87397c2d6a2074 (patch) | |
tree | 226d8b4ad06c2c3a2c5d74dcff68771645df6923 /src/kernel/memory | |
parent | eaadde5453e33af6826bb03488991aab0297d3dd (diff) |
Some memory display fixes
Diffstat (limited to 'src/kernel/memory')
-rw-r--r-- | src/kernel/memory/paging.c | 3 |
1 files changed, 1 insertions, 2 deletions
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++; } } |