X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Fproc.c;h=cdb51b6658574ad2241d6b54db19b2f44b13fcc4;hb=340bda1dddf444ccf46fbc9e7a37bf6c3f0aeb6a;hp=8efe2a81bfe5937dbee10b94b38c82dd6b2d419c;hpb=dcebc16c576aa98eb6a33047f4c4b2b69b30a1bc;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/proc.c b/Kernel/arch/x86/proc.c index 8efe2a81..cdb51b66 100644 --- a/Kernel/arch/x86/proc.c +++ b/Kernel/arch/x86/proc.c @@ -48,7 +48,6 @@ extern void NewTaskHeader(tThread *Thread, void *Fcn, int nArgs, ...); // Actual extern Uint Proc_CloneInt(Uint *ESP, Uint32 *CR3); extern Uint32 gaInitPageDir[1024]; // start.asm extern char Kernel_Stack_Top[]; -extern tShortSpinlock glThreadListLock; extern int giNumCPUs; extern int giNextTID; extern tThread gThreadZero; @@ -557,6 +556,14 @@ void Proc_ChangeStack(void) __asm__ __volatile__ ("mov %0, %%ebp"::"r"(ebp)); } +void Proc_ClearThread(tThread *Thread) +{ + if(Thread->SavedState.SSE) { + free(Thread->SavedState.SSE); + Thread->SavedState.SSE = NULL; + } +} + int Proc_NewKThread(void (*Fcn)(void*), void *Data) { Uint esp;