|
@@ -16,6 +16,7 @@
|
|
#include <linux/smp.h>
|
|
#include <linux/smp.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
#include <asm/cacheflush.h>
|
|
#include <asm/cacheflush.h>
|
|
|
|
+#include <asm/hazards.h>
|
|
#include <asm/tlbflush.h>
|
|
#include <asm/tlbflush.h>
|
|
#ifdef CONFIG_MIPS_MT_SMTC
|
|
#ifdef CONFIG_MIPS_MT_SMTC
|
|
#include <asm/mipsmtregs.h>
|
|
#include <asm/mipsmtregs.h>
|
|
@@ -36,11 +37,13 @@ extern unsigned long pgd_current[];
|
|
#ifdef CONFIG_32BIT
|
|
#ifdef CONFIG_32BIT
|
|
#define TLBMISS_HANDLER_SETUP() \
|
|
#define TLBMISS_HANDLER_SETUP() \
|
|
write_c0_context((unsigned long) smp_processor_id() << 25); \
|
|
write_c0_context((unsigned long) smp_processor_id() << 25); \
|
|
|
|
+ back_to_back_c0_hazard(); \
|
|
TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir)
|
|
TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir)
|
|
#endif
|
|
#endif
|
|
#ifdef CONFIG_64BIT
|
|
#ifdef CONFIG_64BIT
|
|
#define TLBMISS_HANDLER_SETUP() \
|
|
#define TLBMISS_HANDLER_SETUP() \
|
|
write_c0_context((unsigned long) smp_processor_id() << 26); \
|
|
write_c0_context((unsigned long) smp_processor_id() << 26); \
|
|
|
|
+ back_to_back_c0_hazard(); \
|
|
TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir)
|
|
TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir)
|
|
#endif
|
|
#endif
|
|
|
|
|