x86, mm: Make DEBUG_VIRTUAL work earlier in boot
[deliverable/linux.git] / arch / x86 / mm / pat.c
index 0eb572eda4060338543bd0dfc97cf05bccaeb6cb..2610bd93c896871936caaa970abd414d039ff790 100644 (file)
@@ -560,10 +560,10 @@ int kernel_map_sync_memtype(u64 base, unsigned long size, unsigned long flags)
 {
        unsigned long id_sz;
 
-       if (base >= __pa(high_memory))
+       if (base > __pa(high_memory-1))
                return 0;
 
-       id_sz = (__pa(high_memory) < base + size) ?
+       id_sz = (__pa(high_memory-1) <= base + size) ?
                                __pa(high_memory) - base :
                                size;
 
This page took 0.035215 seconds and 5 git commands to generate.