# HG changeset patch # User Paul Boddie # Date 1475448057 -7200 # Node ID ca1a8a522be1bfdb76225c0579da3293831d2076 # Parent a95d655275ac2a60a5f05af7e2a4273373e48f36 Increased the number of tasks, cycling over initialised tasks only. diff -r a95d655275ac -r ca1a8a522be1 stage2/tasks.c --- a/stage2/tasks.c Mon Oct 03 00:39:16 2016 +0200 +++ b/stage2/tasks.c Mon Oct 03 00:40:57 2016 +0200 @@ -142,6 +142,7 @@ /* Switch the current task. */ current_task++; - if (current_task == max_tasks) current_task = 1; + if ((current_task == max_tasks) || !(initial_tasks[current_task - 1])) + current_task = 1; init_task(); } diff -r a95d655275ac -r ca1a8a522be1 stage2/tasks.h --- a/stage2/tasks.h Mon Oct 03 00:39:16 2016 +0200 +++ b/stage2/tasks.h Mon Oct 03 00:40:57 2016 +0200 @@ -5,7 +5,7 @@ /* Provide a limit to the number of tasks (in a way that employs a constant). */ -enum { max_tasks = 3 }; +enum { max_tasks = 10 }; /* Task management functions. */