1 #############################################################################
4 # Intel IXP425 target gdbinit script.
6 # Some very bogus support routines for use on the MaCraogir
7 # wiggler pod on an Intel XSCALE/IXP425 processor board.
10 #############################################################################
17 set *((long*) 0xc800000c) = 0x83
18 set *((long*) 0xc8000000) = 0x08
19 set *((long*) 0xc8000004) = 0x00
20 set *((long*) 0xc800000c) = 0x03
21 set *((long*) 0xc8000004) = 0x40
25 set *((long*) 0xc8000000) = $arg0
34 # set for 32MB (3CAS, 3RAS)
35 set *((long*) 0xcc000000) = 0x18
38 set *((long*) 0xcc000004) = 0
41 set *((long*) 0xcc000008) = 0x03
45 set *((long*) 0xcc000004) = 0x384
48 # send PRECHARGE-ALL command
49 set *((long*) 0xcc000008) = 0x02
52 # send AUTO-REFRESH command
55 set *((long*) 0xcc000008) = 0x04
60 # send MODE (CAS3) command
61 set *((long*) 0xcc000008) = 0x01
64 # send NORMAL-OPERATION command
65 set *((long*) 0xcc000008) = 0x06
73 # Switch memory and expansion regions
76 set *((unsigned long *) 0x10000000) = 0xe3a01331
77 set *((unsigned long *) 0x10000004) = 0xe3811020
78 set *((unsigned long *) 0x10000008) = 0xe5912000
79 set *((unsigned long *) 0x1000000c) = 0xe3c22102
80 set *((unsigned long *) 0x10000010) = 0xe5812000
91 set *((unsigned long *) $addr) = $val
102 while ($num < 0x1000)
103 set $rd = *((unsigned long *) $addr)
107 set $addr = $addr + 4
114 # Set BIG endian mode
117 set *((unsigned long *) 0x10000000) = 0xee110f10
118 set *((unsigned long *) 0x10000004) = 0xe3800080
119 set *((unsigned long *) 0x10000008) = 0xee010f10
120 set *((unsigned long *) 0x1000000c) = 0xee120f10
121 set *((unsigned long *) 0x10000010) = 0xe1a00000
122 set *((unsigned long *) 0x10000010) = 0xe24ff004
128 set *((unsigned long *) 0x10000000) = 0xe3a01331
129 set *((unsigned long *) 0x10000004) = 0xe5912000
130 set *((unsigned long *) 0x10000008) = 0xe3822002
131 set *((unsigned long *) 0x1000000c) = 0xe5812000
141 set *((unsigned long *) 0x10000000) = 0xe3a01205
142 set *((unsigned long *) 0x10000004) = 0xe3a02020
143 set *((unsigned long *) 0x10000008) = 0xe3822a02
144 set *((unsigned long *) 0x1000000c) = 0xe1c120b0
145 set *((unsigned long *) 0x10000010) = 0xe3a020d0
146 set *((unsigned long *) 0x10000014) = 0xe3822a0d
147 set *((unsigned long *) 0x10000018) = 0xe1c120b0
151 set *((unsigned long *) 0x10000000) = 0xe3a020ff
152 set *((unsigned long *) 0x10000004) = 0xe3822cff
153 set *((unsigned long *) 0x10000008) = 0xe1c120b0
159 set *((unsigned long *) 0x10000000) = 0xe3a01205
160 set *((unsigned long *) 0x10000004) = 0xe3811802
161 set *((unsigned long *) 0x10000008) = 0xe3a02020
162 set *((unsigned long *) 0x1000000c) = 0xe3822a02
163 set *((unsigned long *) 0x10000010) = 0xe1c120b0
164 set *((unsigned long *) 0x10000014) = 0xe3a020d0
165 set *((unsigned long *) 0x10000018) = 0xe3822a0d
166 set *((unsigned long *) 0x1000001c) = 0xe1c120b0
170 set *((unsigned long *) 0x10000000) = 0xe3a020ff
171 set *((unsigned long *) 0x10000004) = 0xe3822cff
172 set *((unsigned long *) 0x10000008) = 0xe1c120b0
177 set *((unsigned long *) 0x10000000) = 0xe3a01205
178 set *((unsigned long *) 0x10000004) = 0xe3a02090
179 set *((unsigned long *) 0x10000008) = 0xe3822a09
180 set *((unsigned long *) 0x1000000c) = 0xe1c120b0
186 set *((unsigned long *) 0x10100000) = 0xe3a01205
187 set *((unsigned long *) 0x10100004) = 0xe3a02040
188 set *((unsigned long *) 0x10100008) = 0xe3822901
189 set *((unsigned long *) 0x1010000c) = 0xe3a03080
190 set *((unsigned long *) 0x10100010) = 0xe3a040ff
191 set *((unsigned long *) 0x10100014) = 0xe3844cff
192 set *((unsigned long *) 0x10100018) = 0xe3a05000
193 set *((unsigned long *) 0x1010001c) = 0xe3a06701
194 set *((unsigned long *) 0x10100020) = 0xe1c120b0
195 set *((unsigned long *) 0x10100024) = 0xe1d570b0
196 set *((unsigned long *) 0x10100028) = 0xe1c170b0
197 set *((unsigned long *) 0x1010002c) = 0xe1d170b0
198 set *((unsigned long *) 0x10100030) = 0xe1170003
199 set *((unsigned long *) 0x10100034) = 0x0afffffc
200 set *((unsigned long *) 0x10100038) = 0xe1c140b0
201 set *((unsigned long *) 0x1010003c) = 0xe2811002
202 set *((unsigned long *) 0x10100040) = 0xe2855002
203 set *((unsigned long *) 0x10100044) = 0xe1550006
204 set *((unsigned long *) 0x10100048) = 0x1afffff4
205 set *((unsigned long *) 0x1010004c) = 0xe1a00000
206 set *((unsigned long *) 0x10100050) = 0xe1a00000
207 set *((unsigned long *) 0x10100054) = 0xeafffffe
211 define program-loader
217 load /tmp/redboot-swap.o
223 # Startup commands...
228 target remote localhost:8888
234 set print asm-demangle