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