lkml.org 
[lkml]   [2006]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateFri, 06 Oct 2006 15:10:58 +0200
SubjectRe: [PATCH 4/12] i386: define __pa_symbol()
FromFranck Bui-Huu <>
Vivek Goyal wrote:

> +/* __pa_symbol should be used for C visible symbols.
> + This seems to be the official gcc blessed way to do such arithmetic. */
> +#define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)x,0))

#define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x),0))
^^^
... should be better. You should not rely on RELOC_HIDE implementation.

Franck
-
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/

\
 
 \ /
  Last update: 2006-10-06 15:13    [from the cache]
©2003-2010