psk.s
3.44 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#include <regdef.h>
#include <asm.h>
#include <PR/R4300.h>
#include <PR/bcp.h>
#include <PR/bbsim.h>
#include "../boot.h"
.text
.align 2
.set noreorder
.ent __start
.globl __start
__start:
# indicate progress
TRACE_VAL(0xaaaa)
# simulator off
sh zero, PHYS_TO_K1(PI_IDE3_SIM_HALT)
lw t0, PHYS_TO_K1(PI_IDE_FC_BASE_REG)
power_down_loop:
beq zero, zero, power_down_loop
nop
#if 0
# a bunch of bytes to get a size larger than a single page
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
.word 0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
.word 0x51525354, 0x55565758, 0x595a5b5c, 0x5d5e5f50
.word 0x41424344, 0x45464748, 0x494a4b4c, 0x4d4e4f40
#endif
.end __start