|
@@ -37,6 +37,7 @@
|
|
#include <linux/irq.h>
|
|
#include <linux/irq.h>
|
|
#include <linux/perf_event.h>
|
|
#include <linux/perf_event.h>
|
|
|
|
|
|
|
|
+#include <asm/addrspace.h>
|
|
#include <asm/bootinfo.h>
|
|
#include <asm/bootinfo.h>
|
|
#include <asm/branch.h>
|
|
#include <asm/branch.h>
|
|
#include <asm/break.h>
|
|
#include <asm/break.h>
|
|
@@ -2204,12 +2205,8 @@ void __init trap_init(void)
|
|
ebase = (unsigned long)
|
|
ebase = (unsigned long)
|
|
__alloc_bootmem(size, 1 << fls(size), 0);
|
|
__alloc_bootmem(size, 1 << fls(size), 0);
|
|
} else {
|
|
} else {
|
|
-#ifdef CONFIG_KVM_GUEST
|
|
|
|
-#define KVM_GUEST_KSEG0 0x40000000
|
|
|
|
- ebase = KVM_GUEST_KSEG0;
|
|
|
|
-#else
|
|
|
|
- ebase = CKSEG0;
|
|
|
|
-#endif
|
|
|
|
|
|
+ ebase = CAC_BASE;
|
|
|
|
+
|
|
if (cpu_has_mips_r2_r6)
|
|
if (cpu_has_mips_r2_r6)
|
|
ebase += (read_c0_ebase() & 0x3ffff000);
|
|
ebase += (read_c0_ebase() & 0x3ffff000);
|
|
}
|
|
}
|