Re: Use of __pa() with CONFIG_NONLINEAR

Dave Hansen
2004-07-28T20:24:16Z

On Wed, 2004-07-28 at 13:15, Martin J. Bligh wrote:
> However ... what happens to functions calling __pa that are called from
> boot time and run time code?

I've actually only run into one of those so far that I know of, and that
was on ppc64 (i386 had none that I found). In that one case, I used an
if(unlikely()) to optimize for the run-time one. There might be more,
but I think they're rare enough to just code it with an if() in each
case.

-- Dave