- 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
This commit is contained in:
parent
e7865175bd
commit
794dde279a
1 changed files with 3 additions and 5 deletions
|
@ -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))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue