[PATCH] ARM: move memory layout sanity checking before meminfo initialization

Nicolas Pitre nico at fluxnic.net
Sat Jul 16 18:41:47 EDT 2011


On Fri, 15 Jul 2011, Colin Cross wrote:

> >> My initial offer was a patch that makes an incorrect overlapping mem=
> >> command line print a warning and ignore it, instead of doing something
> >> that is guaranteed to crash the kernel in an obscure way.  I'll post a
> >> patch.
> 
> I don't care about making overlapping mem= work, I'm just trying to
> make it easier to debug when someone screws up and passes conflicting
> mem= arguments, by printing a big warning.  When the warning is
> printed, the kernel might as well take a stab at picking which of the
> two mem= arguments might let it boot far enough to get the console up
> - taking the smaller of any two overlapping regions seems most likely
> to work.  If not, DEBUG_LL will show the warning.

Please do feel free to propose such a patch.  This is certainly a good 
thing on its own


Nicolas



More information about the linux-arm-kernel mailing list