2 * Copyright (c) 2009, yajin <yajin@vm-kernel.org>
\r
3 * Copyright (c) 2005-2008 Ingenic Semiconductor Inc.
\r
4 * Author: <jlwei@ingenic.cn>
\r
6 * This program is free software; you can redistribute it and/or
\r
7 * modify it under the terms of the GNU General Public License as
\r
8 * published by the Free Software Foundation; either version 2 of
\r
9 * the License, or (at your option) any later version.
\r
20 * Disable all interrupts
\r
22 la $8, 0xB0001004 /* INTC_IMR */
\r
27 * CU0=UM=EXL=IE=0, BEV=ERL=1, IP2~7=1
\r
30 mtc0 $26, $12 /* CP0_STATUS */
\r
32 /* IV=1, use the specical interrupt vector (0x200) */
\r
34 mtc0 $26, $13 /* CP0_CAUSE */
\r
36 /* Setup stack pointer */
\r
39 /* Jump to the main routine */
\r