X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=arch%2Farc%2Finclude%2Fasm%2Fmmu.h;h=26b731d32a2b9ccd0d876ed43e61e8d1072be98c;hb=b61c56227bf5a2ca5e146cebcdf50b2e15e4c973;hp=98cadf1a09acfd9a6d4b0ca4900140d4054cef6a;hpb=2ef459167adb5d7cf76df403b4fcf79347056824;p=linux-2.6-microblaze.git diff --git a/arch/arc/include/asm/mmu.h b/arch/arc/include/asm/mmu.h index 98cadf1a09ac..26b731d32a2b 100644 --- a/arch/arc/include/asm/mmu.h +++ b/arch/arc/include/asm/mmu.h @@ -40,6 +40,10 @@ #define ARC_REG_SCRATCH_DATA0 0x46c #endif +#if defined(CONFIG_ISA_ARCV2) || !defined(CONFIG_SMP) +#define ARC_USE_SCRATCH_REG +#endif + /* Bits in MMU PID register */ #define __TLB_ENABLE (1 << 31) #define __PROG_ENABLE (1 << 30) @@ -63,6 +67,8 @@ #if (CONFIG_ARC_MMU_VER >= 2) #define TLBWriteNI 0x5 /* write JTLB without inv uTLBs */ #define TLBIVUTLB 0x6 /* explicitly inv uTLBs */ +#else +#define TLBWriteNI TLBWrite /* Not present in hardware, fallback */ #endif #if (CONFIG_ARC_MMU_VER >= 4)