diff --git a/include/request.h b/include/request.h index c61bac6bc2f1fa152bef25d76f32016c0296b908..e7d498cf1b4e6ee27c865c38f92a692309e2ba3a 100644 --- a/include/request.h +++ b/include/request.h @@ -6,4 +6,4 @@ typedef struct req { void* args[2]; } Request; -#endif \ No newline at end of file +#endif diff --git a/include/task-descriptor.h b/include/task-descriptor.h index 8d2949d2aa8169007091331d21e477bd152c140b..5dba2ea333ceead3b41a600148a93e0fda6eacaf 100644 --- a/include/task-descriptor.h +++ b/include/task-descriptor.h @@ -24,7 +24,7 @@ typedef struct taskDescriptor { int TaskID; int ParentID; State TaskState; - unsigned int* StackPtr; + int* StackPtr; TD* Next; void* RetVal; // TODO PrioLvl TaskPriority; diff --git a/src/Makefile b/src/Makefile index a43f4f7c1724ffc568f4ef650199020642107bc3..e58bf666bb999b15bc4cc523e8bd91cbe3db9025 100644 --- a/src/Makefile +++ b/src/Makefile @@ -66,5 +66,6 @@ install: bwio.a taskdescriptor.a scheduler.a clean: -rm -f *.elf *.s *.o main.map *.a *~ ../../lib/*.a - + +: \ No newline at end of file diff --git a/src/main.c b/src/main.c index 943e73f292631d8fb33850b1b7389ab40e76acec..588d35410302e83158f81a03d10250ac2b2e475f 100644 --- a/src/main.c +++ b/src/main.c @@ -7,14 +7,18 @@ #define FOREVER while(1) +void kerent() {} + void kerxit( TD *active, Request *req ) { - bwprintf( COM2, “kerxit.c: Hello.\n\r†); - bwprintf( COM2, “kerxit.c: Activating.\n\r†); - kerent( ); - bwprintf( COM2, “kerxit.c: Good-bye.\n\r†); + bwprintf(COM2, "kerxit.c: Hello\n\r"); + bwprintf(COM2, "kerxit.c: Activating\n\r"); + kerent(); + bwprintf(COM2, "kerxit.c: Goodbye\n\r"); } -void initialize() +void initialize(TD* Active) { + +} void handle(TD* Active, Request* req) {