Permalink
Browse files

[scripts] trace32: make switching between 7k and 8k easier.

Also turn off pabort/dabort.
  • Loading branch information...
Dima Zavin
Dima Zavin committed Jan 30, 2009
1 parent 42168f2 commit 3862693d191606e3a4e9d25165f21fced8957ba3
Showing with 14 additions and 4 deletions.
  1. +14 −4 scripts/lk.cmm
View
@@ -3,11 +3,21 @@ global &KERNEL_SRC
global &KERNEL_ELF
&KERNEL_SRC="../"
-&KERNEL_ELF="../build-aboot-surf8k/lk"
sys.down
-do config_scorpion.cmm
+global &SURF
+
+if ("&SURF"=="7k")
+(
+ &KERNEL_ELF="../build-aboot-surf7k/lk"
+ do config_a11.cmm
+)
+else
+(
+ &KERNEL_ELF="../build-aboot-surf8k/lk"
+ do config_scorpion.cmm
+)
sys.mode attach
@@ -23,8 +33,8 @@ register.set r0 0
;register.set r1 &MACHINE_ID
;register.set r2 &TAGS_ADDR
-;tronchip.set dabort off
-;tronchip.set pabort off
+tronchip.set dabort off
+tronchip.set pabort off
term.reset
term.size 70 100

0 comments on commit 3862693

Please sign in to comment.