diff --git a/mm/memory.c b/mm/memory.c index cc510297..5478dfb2 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -33,6 +33,8 @@ /* * 0 => free * 1 => occupied + * + * Set whole address space as occupied */ static uint8_t bitmap[BITMAP_SIZE] = {[0 ... BITMAP_SIZE-1] = 0xFF}; static spinlock_t bitmap_lock = SPINLOCK_INIT; @@ -85,10 +87,6 @@ int mmu_init(void) unsigned int i; size_t addr, end_addr; - /* set whole address space as occupied */ - // array is already initialized (see declaration) - //memset(bitmap, 0xFF, sizeof(uint8_t)*BITMAP_SIZE); - #ifdef CONFIG_MULTIBOOT if (mb_info && (mb_info->flags & (1 << 6))) { multiboot_memory_map_t* mmap = (multiboot_memory_map_t*) mb_info->mmap_addr; @@ -116,7 +114,7 @@ int mmu_init(void) } /* - * Modules like init ram disk are already loaded. + * Modules like the init ram disk are already loaded. * Therefore, we set these pages as used. */ if (mb_info && (mb_info->flags & (1 << 3))) {