Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-08 Thread Pavel Machek
Hi! > > > +int pfn_is_nosave(unsigned long pfn) > > > +{ > > > + unsigned long nosave_begin_pfn = __pa_symbol(&__nosave_begin) >> > > > PAGE_SHIFT; > > > + unsigned long nosave_end_pfn = PAGE_ALIGN(__pa_symbol(&__nosave_end)) > > > >> PAGE_SHIFT; > > > + return (pfn >= nosave_begin_pfn) && (pfn

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-08 Thread Pavel Machek
Hi! +int pfn_is_nosave(unsigned long pfn) +{ + unsigned long nosave_begin_pfn = __pa_symbol(__nosave_begin) PAGE_SHIFT; + unsigned long nosave_end_pfn = PAGE_ALIGN(__pa_symbol(__nosave_end)) PAGE_SHIFT; + return (pfn = nosave_begin_pfn) (pfn nosave_end_pfn); +}

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-07 Thread Vivek Goyal
On Wed, Mar 07, 2007 at 11:47:40PM +0100, Pavel Machek wrote: > Hi! > > > o __pa() should be used only on kernel linearly mapped virtual addresses > > and not on kernel text and data addresses. > > > > o Hibernation code needs to determine the physical address associated > > with kernel

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-07 Thread Pavel Machek
Hi! > o __pa() should be used only on kernel linearly mapped virtual addresses > and not on kernel text and data addresses. > > o Hibernation code needs to determine the physical address associated > with kernel symbol to mark a section boundary which contains pages which > don't have to

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-07 Thread Pavel Machek
Hi! o __pa() should be used only on kernel linearly mapped virtual addresses and not on kernel text and data addresses. o Hibernation code needs to determine the physical address associated with kernel symbol to mark a section boundary which contains pages which don't have to be

Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-07 Thread Vivek Goyal
On Wed, Mar 07, 2007 at 11:47:40PM +0100, Pavel Machek wrote: Hi! o __pa() should be used only on kernel linearly mapped virtual addresses and not on kernel text and data addresses. o Hibernation code needs to determine the physical address associated with kernel symbol to mark a

[PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-06 Thread Vivek Goyal
o __pa() should be used only on kernel linearly mapped virtual addresses and not on kernel text and data addresses. o Hibernation code needs to determine the physical address associated with kernel symbol to mark a section boundary which contains pages which don't have to be saved and

[PATCH 15/20] Move swsusp __pa() dependent code to arch portion

2007-03-06 Thread Vivek Goyal
o __pa() should be used only on kernel linearly mapped virtual addresses and not on kernel text and data addresses. o Hibernation code needs to determine the physical address associated with kernel symbol to mark a section boundary which contains pages which don't have to be saved and