Does it reserve extra memory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

I just read the following code in file "arch/i386/kernel/setup.c" of
kernel 2.6.17. From the comments, I assume it will only need to
reserve the memory for bootmem bitmap, but in fact it reserved memory
from the 0x00100000 to the bootmap end (plussing one page).

Am I right?

1224     /*
1225      * Reserve the bootmem bitmap itself as well. We do this in two
1226      * steps (first step was init_bootmem()) because this catches
1227      * the (very unlikely) case of us accidentally initializing the
1228      * bootmem allocator with an invalid RAM area.
1229      */
1230     reserve_bootmem(__PHYSICAL_START, (PFN_PHYS(min_low_pfn) +
1231              bootmap_size + PAGE_SIZE-1) - (__PHYSICAL_START));

Thanks,
Neo
--
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux