On Thu, Oct 08, 2009 at 10:21:12PM +0200, Rafael J. Wysocki wrote: > > Here, we fix it via checking pfn is in the "System RAM" or not. and > > Seems pfn_valid() is not called in assembly code, we move it to > > "!__ASSEMBLY__" to ensure we can simply declare it via "extern int > > pfn_valid(unsigned long)" without Compiling Error. > > > > (This -v1 version incorporates feedback from Pavel Machek <pavel@xxxxxx> > > and Sergei Shtylyov <sshtylyov@xxxxxxxxxxxxx>) > > Hmm. What exactly would be wrong with using register_nosave_region() or > register_nosave_region_late() like x86 does? That seems to be more the fix than pfn_valid / PageReserved fiddlery we were discussing in the other thread. Thanks! Ralf