lkml.org 
[lkml]   [2009]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: print out in e820_update_range()

* Yinghai Lu <yinghai@kernel.org> wrote:

> Ingo Molnar wrote:
> > * Yinghai Lu <yinghai@kernel.org> 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


\
 
 \ /
  Last update: 2009-03-15 19:59    [W:5.221 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site