Skip to content
Snippets Groups Projects
syscall-handler.c 843 B
Newer Older
#include "task-descriptor.h"
#include "kernel.h"
#include "syscall-handler.h"


void handlerCreate(KernelStruct* Colonel) {
antnh6@gmail.com's avatar
antnh6@gmail.com committed

}

void Handle(KernelStruct* Colonel, int n) {
    switch(n) {
            handlerCreate(Colonel); 
            break;
            (Colonel->Active)->RetVal = (Colonel->Active)->TaskID;
            pushToScheduler(Colonel);
            break;
            (Colonel->Active)->RetVal = (Colonel->Active)->ParentID;
            pushToScheduler(Colonel);
            break;
            pushToScheduler(Colonel);
            break;
            (Colonel->Active)->TaskState = Zombie;
            break;
int Activate(KernelStruct* Colonel, TD* Task) {
    int Request;
    return Request;
}