blob: 5dc1cfd3e2f41726283b13cc19424a41e830b937 [file] [log] [blame]
Brian Swetlanda5e90952009-01-26 02:15:35 -08001
2global &KERNEL_SRC
3global &KERNEL_ELF
4
5&KERNEL_SRC="../"
Brian Swetlanda5e90952009-01-26 02:15:35 -08006
7sys.down
8
Dima Zavin38626932009-01-30 10:57:28 -08009global &SURF
10
11if ("&SURF"=="7k")
12(
13 &KERNEL_ELF="../build-aboot-surf7k/lk"
14 do config_a11.cmm
15)
16else
17(
18 &KERNEL_ELF="../build-aboot-surf8k/lk"
19 do config_scorpion.cmm
20)
Brian Swetlanda5e90952009-01-26 02:15:35 -080021
22sys.mode attach
23
24if state.run()
25(
26 break
27)
28
29data.load.ELF &KERNEL_ELF /RELPATH /PATH &KERNEL_SRC
30
31register.set pc 0
32register.set r0 0
33;register.set r1 &MACHINE_ID
34;register.set r2 &TAGS_ADDR
35
Dima Zavin38626932009-01-30 10:57:28 -080036tronchip.set dabort off
37tronchip.set pabort off
Brian Swetlanda5e90952009-01-26 02:15:35 -080038
39term.reset
40term.size 70 100
41term.scroll.on
42term
43
44break.select program onchip
45break.delete
46;break.set platform_early_init
47
48go
49