Put boot device memory initialization with #ifdef ENABLE_BOOTDEV ... #endif

This commit is contained in:
Jorrit Herder 2005-08-10 09:45:49 +00:00
parent ab732a37e8
commit 79ade04187

View file

@ -237,6 +237,7 @@ PRIVATE void pm_init()
if (sendrec(FS_PROC_NR, &mess) != OK || mess.m_type != OK) if (sendrec(FS_PROC_NR, &mess) != OK || mess.m_type != OK)
panic(__FILE__,"can't sync up with FS", NO_NUM); panic(__FILE__,"can't sync up with FS", NO_NUM);
#if ENABLE_BOOTDEV
/* Possibly we must correct the memory chunks for the boot device. */ /* Possibly we must correct the memory chunks for the boot device. */
if (kinfo.bootdev_size > 0) { if (kinfo.bootdev_size > 0) {
mem_map[T].mem_phys = kinfo.bootdev_base >> CLICK_SHIFT; mem_map[T].mem_phys = kinfo.bootdev_base >> CLICK_SHIFT;
@ -244,6 +245,7 @@ PRIVATE void pm_init()
mem_map[D].mem_len = (kinfo.bootdev_size+CLICK_SIZE-1) >> CLICK_SHIFT; mem_map[D].mem_len = (kinfo.bootdev_size+CLICK_SIZE-1) >> CLICK_SHIFT;
patch_mem_chunks(mem_chunks, mem_map); patch_mem_chunks(mem_chunks, mem_map);
} }
#endif /* ENABLE_BOOTDEV */
/* Initialize tables to all physical memory and print memory information. */ /* Initialize tables to all physical memory and print memory information. */
printf("Physical memory:"); printf("Physical memory:");