summaryrefslogtreecommitdiff
path: root/arch/mips/mach-pic32/lowlevel_init.S
blob: e37bebb539b825fd1baf2530753c2df7338d01a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * (c) 2015 Purna Chandra Mandal <purna.mandal@microchip.com>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 *
*/

#include <config.h>
#include <asm/regdef.h>
#include <asm/mipsregs.h>
#include <asm/asm.h>

LEAF(lowlevel_init)
	/*
	 * Establish Cause
	 * (set IV bit)
	 */
	li	t1, 0x00800000
	mtc0	t1, CP0_CAUSE

	/* Establish Wired (and Random) */
	mtc0	zero, CP0_WIRED
	 nop

	jr	ra
	 nop
	END(lowlevel_init)