patch-2.4.6 linux/include/asm-m68k/pgalloc.h
Next file: linux/include/asm-m68k/q40_keyboard.h
Previous file: linux/include/asm-m68k/parport.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Mon Jun 11 19:15:27 2001
- Orig file:
v2.4.5/linux/include/asm-m68k/pgalloc.h
- Orig date:
Tue Dec 5 12:43:48 2000
diff -u --recursive --new-file v2.4.5/linux/include/asm-m68k/pgalloc.h linux/include/asm-m68k/pgalloc.h
@@ -105,14 +105,14 @@
}
/* Push the page at kernel virtual address and clear the icache */
+/* RZ: use cpush %bc instead of cpush %dc, cinv %ic */
#define flush_page_to_ram(page) __flush_page_to_ram((unsigned long) page_address(page))
extern inline void __flush_page_to_ram(unsigned long address)
{
if (CPU_IS_040_OR_060) {
__asm__ __volatile__("nop\n\t"
".chip 68040\n\t"
- "cpushp %%dc,(%0)\n\t"
- "cinvp %%ic,(%0)\n\t"
+ "cpushp %%bc,(%0)\n\t"
".chip 68k"
: : "a" (__pa((void *)address)));
} else {
@@ -128,6 +128,7 @@
#define flush_dcache_page(page) do { } while (0)
/* Push n pages at kernel virtual address and clear the icache */
+/* RZ: use cpush %bc instead of cpush %dc, cinv %ic */
extern inline void flush_icache_range (unsigned long address,
unsigned long endaddr)
{
@@ -137,8 +138,7 @@
while (--n >= 0) {
__asm__ __volatile__("nop\n\t"
".chip 68040\n\t"
- "cpushp %%dc,(%0)\n\t"
- "cinvp %%ic,(%0)\n\t"
+ "cpushp %%bc,(%0)\n\t"
".chip 68k"
: : "a" (virt_to_phys((void *)address)));
address += PAGE_SIZE;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)