![]() | |||||||||||||
Messages in this thread |
"H. Peter Anvin" <hpa@zytor.com> writes: > Eric W. Biederman wrote: > > I intend to export _end into setup.S so a bootloader can > > tell what memory the kernel will attempt to use before looking at > > the e820 map, the kernel command line, and the initrd location. > > After that the kernel can properly dynamically allocate things. > > > > You're confusing "may" with "will". This is the fundamental problem with this > approach. If the margin of error was significant I would agree. The margin of error in this case is very small. > > Exporting _end will allow two things. > > 1) On systems with a 15M-16M I/O hole the bootloader can check to see > > if a big kernel will attempt to use memory in that region. > > 2) On small memory systems it will let the bootloader make a good > > estimate to see if everything will fit into memory. > > No, it won't, because it still has no idea whatsoever how much dynamically > allocated memory it needs during boot. It will at least ensure the kernel can run long enough to fail gracefully. I admit that a panic is not the most graceful failure but it does at least let you know what went wrong. Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 13:01 [W:0.239 / U:0.280 seconds] ©2003-2008 Jasper Spaans | |||||||||||||