aboutsummaryrefslogtreecommitdiff
path: root/boot.S
blob: c74327aad3cd89df4dcdc8ed1a16a36aaa691111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
	.text
	.global __start
	.ent    __start
__start:

	# set up SR
	li		$t0, 0xFF
	mtpcr	$t0, $0

	# set up trap table
	la		$t0, trap_table
	mtpcr	$t0, $3

	# set up stack
	la		$sp,stack_top-64

	# call into kernel
	la		$t0, boot
	jr		$t0

	.end    __start