• Eric W. Biederman's avatar
    [PATCH] i386: define __pa_symbol() · 9f45accf
    Eric W. Biederman authored
    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: default avatarEric W. Biederman <ebiederm@xmission.com>
    Signed-off-by: default avatarVivek Goyal <vgoyal@in.ibm.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    9f45accf
page.h 4.4 KB