/*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) 1995 - 1999 Ralf Baechle6* Copyright (C) 1999 Silicon Graphics, Inc.7*8* Cache error handler9*/10#include <asm/asm.h>11#include <asm/regdef.h>12#include <asm/mipsregs.h>13#include <asm/stackframe.h>1415/*16* Game over. Go to the button. Press gently. Swear where allowed by17* legislation.18*/19LEAF(except_vec2_generic)20.set noreorder21.set noat22.set mips023/*24* This is a very bad place to be. Our cache error25* detection has triggered. If we have write-back data26* in the cache, we may not be able to recover. As a27* first-order desperate measure, turn off KSEG0 cacheing.28*/29mfc0 k0,CP0_CONFIG30li k1,~CONF_CM_CMASK31and k0,k0,k132ori k0,k0,CONF_CM_UNCACHED33mtc0 k0,CP0_CONFIG34/* Give it a few cycles to sink in... */35nop36nop37nop3839j cache_parity_error40nop41END(except_vec2_generic)424344