aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r--arch/mips/kernel/traps.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index a200b5bdbb87..59351e5d0591 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1713,7 +1713,12 @@ void __init trap_init(void)
1713 ebase = (unsigned long) 1713 ebase = (unsigned long)
1714 __alloc_bootmem(size, 1 << fls(size), 0); 1714 __alloc_bootmem(size, 1 << fls(size), 0);
1715 } else { 1715 } else {
1716 ebase = CKSEG0; 1716#ifdef CONFIG_KVM_GUEST
1717#define KVM_GUEST_KSEG0 0x40000000
1718 ebase = KVM_GUEST_KSEG0;
1719#else
1720 ebase = CKSEG0;
1721#endif
1717 if (cpu_has_mips_r2) 1722 if (cpu_has_mips_r2)
1718 ebase += (read_c0_ebase() & 0x3ffff000); 1723 ebase += (read_c0_ebase() & 0x3ffff000);
1719 } 1724 }