1.1 --- a/stage2/irq.c Tue Mar 01 00:50:20 2016 +0100
1.2 +++ b/stage2/irq.c Tue Mar 01 00:55:13 2016 +0100
1.3 @@ -147,7 +147,7 @@
1.4 /* Switch the current task. */
1.5
1.6 current_task++;
1.7 - if (current_task == max_tasks) current_task = 1;
1.8 + if (current_task == max_tasks) current_task = 0;
1.9
1.10 /* Indicate the current stack pointer and task registers. */
1.11
2.1 --- a/stage2/stage2.c Tue Mar 01 00:50:20 2016 +0100
2.2 +++ b/stage2/stage2.c Tue Mar 01 00:55:13 2016 +0100
2.3 @@ -55,5 +55,5 @@
2.4 /* Now, wait for the tasks to be selected as interrupts occur. */
2.5
2.6 enable_interrupts();
2.7 - while (1) asm volatile("wait");
2.8 + plot_pattern(3, 0, 120);
2.9 }