From 794dde279aa8e29aa112d9cb062ad7745e3bd09f Mon Sep 17 00:00:00 2001 From: stefan Date: Wed, 8 Sep 2010 07:12:54 +0000 Subject: [PATCH] - remove obsolete liness - remove typos - add comments git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@148 315a16e6-25f9-4109-90ae-ca3045a26c18 --- mm/memory.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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))) {