From 86b50a6aa078c891811932004d7ba260cb7920c7 Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 11 Oct 2022 19:25:19 +0200 Subject: [PATCH] Remove random demos Cool, but cumbersome in practice: have to continually restart until I get the demo I want. So let's stick to init for now. --- kernel/src/main.cpp | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/kernel/src/main.cpp b/kernel/src/main.cpp index 81e73876..93f7231e 100644 --- a/kernel/src/main.cpp +++ b/kernel/src/main.cpp @@ -124,36 +124,7 @@ extern "C" void _start() } }); - uint64_t demo = Mersenne::get() % 6; - - switch (demo) - { - case 0: - kinfoln("Loading demo: example init program"); - Scheduler::load_user_task("bin/init"); - break; - case 1: - kinfoln("Loading demo: first 50 fibonacci numbers"); - Scheduler::load_user_task("bin/fib"); - break; - case 2: - kinfoln("Loading demo: leap year calculator"); - Scheduler::load_user_task("bin/leap"); - break; - case 3: - kinfoln("Loading demo: painting program"); - Scheduler::load_user_task("bin/art"); - break; - case 4: - kinfoln("Loading demo: memory eating program"); - Scheduler::load_user_task("bin/memeater"); - break; - case 5: - kinfoln("Loading demo: misbehaving program"); - Scheduler::load_user_task("bin/quota"); - break; - default: break; - } + Scheduler::load_user_task("bin/init"); kinfoln("Prepared scheduler tasks");