From 9fd9afdfd59cf778e64da865361158278ebc6358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 28 Apr 2015 13:05:26 +0200 Subject: Add boot phase --- scripts/loop.py | 8 ++++++++ scripts/phase.py | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/loop.py b/scripts/loop.py index 1911fc2..83633ff 100755 --- a/scripts/loop.py +++ b/scripts/loop.py @@ -12,6 +12,7 @@ import solution import kernel from exceptions import MissingFile import iteration +import boot def step(): phs = phase.get() @@ -58,6 +59,13 @@ def step(): phase.set(10) elif phs == 10: phase.message(10) + phase.set(11) + elif phs == 11: + phase.message(11) + boot.boot() + phase.set(12) + elif phs == 12: + phase.message(12) phase.set(2) class mainThread(Thread): diff --git a/scripts/phase.py b/scripts/phase.py index 390087f..30e61c2 100644 --- a/scripts/phase.py +++ b/scripts/phase.py @@ -14,7 +14,9 @@ phases = ("Not Initialized", #0 "Kernel configuration", #7 "Kernel configured", #8 "Kernel build", #9 - "Kernel built" #10 + "Kernel built", #10 + "System boot", #11 + "Benchmark successful" #12 ) def get(): -- cgit v1.2.3