aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/mm.c
diff options
context:
space:
mode:
authorMarvin Borner2021-05-20 16:16:01 +0200
committerMarvin Borner2021-05-20 16:16:01 +0200
commit9da2af6699ca6e954bc3cb523dd74a9195a503d5 (patch)
treed2630dcc08bf05a211989a51f1b0c68f0b535a56 /kernel/features/mm.c
parent3f928975d3f2925c6227e7389adf03c22df2d898 (diff)
Coding style fixes
Diffstat (limited to 'kernel/features/mm.c')
-rw-r--r--kernel/features/mm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/features/mm.c b/kernel/features/mm.c
index eca1aae..0f80fda 100644
--- a/kernel/features/mm.c
+++ b/kernel/features/mm.c
@@ -730,9 +730,8 @@ void memory_user_hook(void)
CLEAR void memory_install(void)
{
// Set all memory 'used'
- for (u32 i = 0; i < 1024 * 1024 / 8; i++) {
+ for (u32 i = 0; i < sizeof(memory); i++)
memory[i] = 0xff;
- }
// Free memory using mmap
multiboot_mmap();