aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
Diffstat (limited to 'external')
-rw-r--r--external/mambo/skiboot.tcl15
1 files changed, 14 insertions, 1 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index f3684a7..7068c80 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -1,6 +1,17 @@
# need to get images path defined early
source $env(LIB_DIR)/ppc/util.tcl
+#
+# Call tclreadline's Loop to move to friendlier
+# commandline if one exists
+#
+proc readline { } {
+ set readline [catch { package require tclreadline }]
+ if { $readline == 0 } {
+ ::tclreadline::Loop
+ }
+}
+
proc mconfig { name env_name def } {
global mconf
global env
@@ -531,5 +542,7 @@ epapr::of2dtb mysim $mconf(epapr_dt_addr)
mysim mode fastest
if { [info exists env(SKIBOOT_AUTORUN)] } {
- mysim go
+ if [catch { mysim go }] {
+ readline
+ }
}