1.1 --- a/stage2/tasks.c Sat Apr 23 23:01:28 2016 +0200
1.2 +++ b/stage2/tasks.c Sat Apr 23 23:25:58 2016 +0200
1.3 @@ -19,10 +19,10 @@
1.4
1.5 #include "cpu.h"
1.6 #include "paging.h"
1.7 +#include "tasks.h"
1.8
1.9 /* Task tables and data. */
1.10
1.11 -enum { max_tasks = 3 };
1.12 static u32 stack_pointers[max_tasks];
1.13 static u32 registers[max_tasks][32];
1.14
1.15 @@ -36,7 +36,7 @@
1.16 const u32 stack_size = 0x00002000;
1.17 const u32 pagesize = 4 * 1024;
1.18
1.19 -/* The unrelocated symbol table location. */
1.20 +/* A reference to the unrelocated symbol table location. */
1.21
1.22 extern u32 _got_copy_start;
1.23
1.24 @@ -49,7 +49,7 @@
1.25 current_registers = registers[current_task];
1.26 }
1.27
1.28 -void start_task(unsigned short task, void (*function)(), u32 args[], unsigned short nargs)
1.29 +void start_task(unsigned short task, void (*function)(), u32 args[], u8 nargs)
1.30 {
1.31 u32 virtual, physical;
1.32