2 * Copyright (C) 2001,2002,2003 Broadcom Corporation
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #include <linux/config.h>
19 #include <linux/init.h>
22 #include <asm/regdef.h>
23 #include <asm/mipsregs.h>
24 #include <asm/stackframe.h>
25 #include <asm/sibyte/board.h>
33 /* Cache Error handler for SB1 */
36 # check if error was recoverable
38 #ifdef CONFIG_SB1_PASS_1_WORKAROUNDS
39 # look for signature of spurious CErr
42 .word 0x401Bd801 # mfc0 k1, $27, 1
46 beq k0, k1, leave_cerr
52 # clear/unlock the registers
55 .word 0x4080d801 # mtc0 zero, $27, 1
56 .word 0x4080d803 # mtc0 zero, $27, 3
66 ori k0,k0,CONF_CM_UNCACHED
76 sll k0, k0, 3 # check CU0 (kernel?)