Skip to content
Snippets Groups Projects
Commit 36e0beb6 authored by antnh6@gmail.com's avatar antnh6@gmail.com
Browse files

fixed main

parent a99943b2
No related branches found
No related tags found
1 merge request!16Withtime
......@@ -6,4 +6,4 @@ typedef struct req {
void* args[2];
} Request;
#endif
\ No newline at end of file
#endif
......@@ -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;
......
......@@ -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
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment