]> rtime.felk.cvut.cz Git - mcf548x/linux.git/blobdiff - arch/m68k/include/asm/system_mm.h
Current (FEC from 2.6.31 port, no CAN, no I2C, no PCI)
[mcf548x/linux.git] / arch / m68k / include / asm / system_mm.h
index 47b01f4726bc76d3afd834f9eb840de64c68998c..014fbe1d5f7ddff99b6af648bbcc307132599ed7 100644 (file)
@@ -9,6 +9,20 @@
 
 #ifdef __KERNEL__
 
+#ifdef CONFIG_COLDFIRE
+#define FLUSH_BC        (0x00040000)
+
+#define finish_arch_switch(prev) do {           \
+        unsigned long tmpreg;                   \
+        asm volatile ( "move.l %2,%0\n"         \
+                       "orl %1,%0\n"            \
+                       "movec %0,%%cacr"        \
+                       : "=&d" (tmpreg)         \
+                       : "id" (FLUSH_BC), "m" (shadow_cacr));   \
+        } while(0)
+
+#endif
+
 /*
  * switch_to(n) should switch tasks to task ptr, first checking that
  * ptr isn't the current task, in which case it does nothing.  This