Re: [PATCH] x86: print out in e820_update_range()

From: Ingo Molnar
Date: Sun Mar 15 2009 - 14:55:50 EST



* Yinghai Lu <yinghai@xxxxxxxxxx> wrote:

> Ingo Molnar wrote:
> > * Yinghai Lu <yinghai@xxxxxxxxxx> wrote:
> >
> >> Impact: to find crazy calling
> >>
> >> try to print out more info, to catch wrong calling
> >
> > Could we detect incorrect parameters more directly as well, via
> > a check and a panic()?
>
> only valid checking seems to be
> virt_to_phys(_text), virt_to_phys(_end)
>
>
> if (new_type == E820_RESERVED && start >= virt_to_phys(_text) && start <= virt_to_phys(_end))
> panic("try to update to e820 range for kernel to RESERVED!");

hm, seems a bit too specialized.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/