From: Eric W. Biederman Date: Thu, 7 Dec 2006 01:14:03 +0000 (+0100) Subject: [PATCH] i386: define __pa_symbol() X-Git-Tag: v2.6.20-rc1~145^2^2~8^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f45accf17efc050ba26bf77cc4f166c950b284e;p=pandora-kernel.git [PATCH] i386: define __pa_symbol() On x86_64 we have to be careful with calculating the physical address of kernel symbols. Both because of compiler odditities and because the symbols live in a different range of the virtual address space. Having a defintition of __pa_symbol that works on both x86_64 and i386 simplifies writing code that works for both x86_64 and i386 that has these kinds of dependencies. So this patch adds the trivial i386 __pa_symbol definition. Added assembly magic similar to RELOC_HIDE as suggested by Andi Kleen. Just picked it up from x86_64. Signed-off-by: Eric W. Biederman Signed-off-by: Vivek Goyal Signed-off-by: Andi Kleen --- Reading git-diff-tree failed