From: Paul M. <le...@us...> - 2002-06-28 16:09:20
|
Update of /cvsroot/linux-mips/linux/arch/mips/jmr3927/rbhma3100 In directory usw-pr-cvs1:/tmp/cvs-serv23201 Modified Files: setup.c Log Message: Add a sane wbflush(). Based off the HCP5 implementation. Index: setup.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/jmr3927/rbhma3100/setup.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- setup.c 16 May 2002 18:40:06 -0000 1.7 +++ setup.c 28 Jun 2002 16:09:16 -0000 1.8 @@ -9,6 +9,7 @@ * Setup file for JMR3927. * * Copyright (C) 2000-2001 Toshiba Corporation + * Copyright (C) 2002 TimeSys Corp. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -57,6 +58,7 @@ #include <asm/cpu.h> #include <asm/pci_channel.h> #include <asm/debug.h> +#include <asm/wbflush.h> /* Tick Timer divider */ #define JMR3927_TIMER_CCD 0 /* 1/2 */ @@ -252,11 +254,24 @@ { } +static void jmr3927_wbflush(void) +{ + __asm__ __volatile__ ( + ".set push\n\t" + ".set noreorder\n\t" + "1:\n\t" + "bc0f 1b\n\t" + "nop\n\t" + ".set pop" + ); +} + void __init jmr3927_setup(void) { extern int panic_timeout; char *argptr; + __wbflush = jmr3927_wbflush; irq_setup = jmr3927_irq_setup; #ifndef JMR3927_INIT_INDIRECT_PCI set_io_port_base(JMR3927_PORT_BASE + JMR3927_PCIIO); |