• Thomas Gleixner's avatar
    x86: cpa cleanup the 64-bit alias math · 0879750f
    Thomas Gleixner authored
    Cleanup the address calculations, which are necessary to identify the
    high/low alias mappings of the kernel on 64 bit machines. Instead of
    calling __pa/__va back and forth, calculate the physical address once
    and base the other calculations on it. Add understandable constants so
    we can use the already available within() helper. Also add comments,
    which help mere mortals to understand what this code does.
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    0879750f
pageattr.c 13.3 KB