X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86_64%2Fproc.c;h=ce6ebbdec394302f3bf564104f48c37cb73097cc;hb=dc42c3998b01e66a609fed5d503a81a972e636d6;hp=415901fc8b8529c549aaf46dc5a271b4110f019a;hpb=c648a754a16a38124b7eee0e7aaab685349aaf60;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86_64/proc.c b/Kernel/arch/x86_64/proc.c index 415901fc..ce6ebbde 100644 --- a/Kernel/arch/x86_64/proc.c +++ b/Kernel/arch/x86_64/proc.c @@ -429,13 +429,16 @@ tThread *Proc_GetCurThread(void) #endif } +/** + * \brief Create a new kernel thread + */ int Proc_NewKThread(void (*Fcn)(void*), void *Data) { Uint rsp; tThread *newThread, *cur; cur = Proc_GetCurThread(); - newThread = Threads_CloneTCB(NULL, 0); + newThread = Threads_CloneTCB(0); if(!newThread) return -1; // Set CR3 @@ -481,7 +484,7 @@ int Proc_Clone(Uint Flags) } // Create new TCB - newThread = Threads_CloneTCB(NULL, Flags); + newThread = Threads_CloneTCB(Flags); if(!newThread) return -1; // Save core machine state