diff options
Diffstat (limited to 'arch/mips/include/asm/mach-generic/spaces.h')
| -rw-r--r-- | arch/mips/include/asm/mach-generic/spaces.h | 11 | 
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/mips/include/asm/mach-generic/spaces.h b/arch/mips/include/asm/mach-generic/spaces.h index d7a9efd3a5c..5b2f2e68e57 100644 --- a/arch/mips/include/asm/mach-generic/spaces.h +++ b/arch/mips/include/asm/mach-generic/spaces.h @@ -20,14 +20,21 @@  #endif  #ifdef CONFIG_32BIT - +#ifdef CONFIG_KVM_GUEST +#define CAC_BASE		_AC(0x40000000, UL) +#else  #define CAC_BASE		_AC(0x80000000, UL) +#endif  #define IO_BASE			_AC(0xa0000000, UL)  #define UNCAC_BASE		_AC(0xa0000000, UL)  #ifndef MAP_BASE +#ifdef CONFIG_KVM_GUEST +#define MAP_BASE		_AC(0x60000000, UL) +#else  #define MAP_BASE		_AC(0xc0000000, UL)  #endif +#endif  /*   * Memory above this physical address will be considered highmem. @@ -69,7 +76,7 @@  #define HIGHMEM_START		(_AC(1, UL) << _AC(59, UL))  #endif -#define TO_PHYS(x)		(             ((x) & TO_PHYS_MASK)) +#define TO_PHYS(x)		(	      ((x) & TO_PHYS_MASK))  #define TO_CAC(x)		(CAC_BASE   | ((x) & TO_PHYS_MASK))  #define TO_UNCAC(x)		(UNCAC_BASE | ((x) & TO_PHYS_MASK))  |