From: Paul M. <le...@li...> - 2007-07-29 22:51:08
|
On Sun, Jul 29, 2007 at 07:25:21PM +0100, Adrian McMenamin wrote: > diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c > index 6334a4c..6f5e9e4 100644 > --- a/arch/sh/kernel/process.c > +++ b/arch/sh/kernel/process.c > @@ -97,6 +97,11 @@ void cpu_idle(void) > > void machine_restart(char * __unused) > { > + > +#ifdef CONFIG_SH_DREAMCAST > + /*reboot the Dreamcast under software control*/ > + writel(0x00007611, 0xA05F6890); > +#endif > /* SR.BL=1 and invoke address error to let CPU reset (manual reset) */ > asm volatile("ldc %0, sr\n\t" > "mov.l @%1, %0" : : "r" (0x10000000), "r" (0x80000001)); No, if you want to do this, at least use a function pointer and leave this as the default implementation. The dreamcast presumably only needs this magic write anyways, rather than the SR.BL trick. |