On Mon, Dec 04, 2006 at 10:42:47PM +0100, Andi Kleen wrote:
> > > But arch independent code can not call __pa_symbol() as this definition
> > > is local to i386 and x86_64 arches. So is it acceptable to change
> > > symantics of __pa()?
>
> __pa is by definition architecture dependent. Why should
> architecture independent code want to call it?
>
kernel/power/snapshot.c also uses __pa(). Needs to determine the physical
addr associated with a kernel symbol. How do we do that?
static inline int pfn_is_nosave(unsigned long pfn)
{
unsigned long nosave_begin_pfn = __pa(&__nosave_begin) >> PAGE_SHIFT;
unsigned long nosave_end_pfn = PAGE_ALIGN(__pa(&__nosave_end)) >>
PAGE_SHIFT;
return (pfn >= nosave_begin_pfn) && (pfn < nosave_end_pfn);
}
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot