/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file "COPYING" in the main directory of this archive3* for more details.4*5* Copyright (C) 1997 Ralf Baechle6*/7#include <linux/irqflags.h>8#include <linux/kernel.h>910#include <asm/cacheflush.h>11#include <asm/mipsregs.h>12#include <asm/processor.h>1314void wrppmc_machine_restart(char *command)15{16/*17* Ouch, we're still alive ... This time we take the silver bullet ...18* ... and find that we leave the hardware in a state in which the19* kernel in the flush locks up somewhen during of after the PCI20* detection stuff.21*/22local_irq_disable();23set_c0_status(ST0_BEV | ST0_ERL);24change_c0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);25flush_cache_all();26write_c0_wired(0);27__asm__ __volatile__("jr\t%0"::"r"(0xbfc00000));28}2930void wrppmc_machine_halt(void)31{32local_irq_disable();3334printk(KERN_NOTICE "You can safely turn off the power\n");35while (1) {36if (cpu_wait)37cpu_wait();38}39}404142