From: Jorrit Herder Date: Wed, 10 Aug 2005 09:45:49 +0000 (+0000) Subject: Put boot device memory initialization with #ifdef ENABLE_BOOTDEV ... #endif X-Git-Tag: v3.1.0~381 X-Git-Url: http://zhaoyanbai.com/repos/doc/html/static/gitweb.css?a=commitdiff_plain;h=79ade04187ef9e54ac58c6aff1d1d600143da896;p=minix.git Put boot device memory initialization with #ifdef ENABLE_BOOTDEV ... #endif --- diff --git a/servers/pm/main.c b/servers/pm/main.c index 636f8a810..d4e83baa0 100644 --- a/servers/pm/main.c +++ b/servers/pm/main.c @@ -237,6 +237,7 @@ PRIVATE void pm_init() if (sendrec(FS_PROC_NR, &mess) != OK || mess.m_type != OK) panic(__FILE__,"can't sync up with FS", NO_NUM); +#if ENABLE_BOOTDEV /* Possibly we must correct the memory chunks for the boot device. */ if (kinfo.bootdev_size > 0) { 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; patch_mem_chunks(mem_chunks, mem_map); } +#endif /* ENABLE_BOOTDEV */ /* Initialize tables to all physical memory and print memory information. */ printf("Physical memory:");