Messages in this thread | | | From | Andi Kleen <> | Subject | Re: [PATCH 2/33] i386: define __pa_symbol | Date | Wed, 2 Aug 2006 05:04:17 +0200 |
| |
> Yes. ISO C only defines pointer arithmetic with in arrays. > I believe gnu C makes it a well defined case.
Nope, it doesn't.
There was a miscompilation on PPC some time ago, that is why HIDE_RELOC() and __pa_symbol() was implemented.
> > Currently we do not appear to have any problems on i386. > But I have at least one case of code that is shared between > i386 and x86_64 and it is appropriate to use __pa_symbol on > x86_64. > > So I added __pa_symbol for that practical reason. > > I would have no problems with generalizing this but I wanted to > at least make it possible to use the concept on i386.
No problem with that, just use HIDE_RELOC
-Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |