git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
arch
/
x86
/
proc.c
diff --git
a/KernelLand/Kernel/arch/x86/proc.c
b/KernelLand/Kernel/arch/x86/proc.c
index
de0d5c3
..
f68e663
100644
(file)
--- a/
KernelLand/Kernel/arch/x86/proc.c
+++ b/
KernelLand/Kernel/arch/x86/proc.c
@@
-663,7
+663,7
@@
tPID Proc_Clone(Uint Flags)
* \fn int Proc_SpawnWorker(void)
* \brief Spawns a new worker thread
*/
* \fn int Proc_SpawnWorker(void)
* \brief Spawns a new worker thread
*/
-
int
Proc_SpawnWorker(void (*Fcn)(void*), void *Data)
+
tThread *
Proc_SpawnWorker(void (*Fcn)(void*), void *Data)
{
tThread *new;
Uint stack_contents[4];
{
tThread *new;
Uint stack_contents[4];
@@
-672,7
+672,7
@@
int Proc_SpawnWorker(void (*Fcn)(void*), void *Data)
new = Threads_CloneThreadZero();
if(!new) {
Warning("Proc_SpawnWorker - Out of heap space!\n");
new = Threads_CloneThreadZero();
if(!new) {
Warning("Proc_SpawnWorker - Out of heap space!\n");
- return
-1
;
+ return
NULL
;
}
// Create the stack contents
}
// Create the stack contents
@@
-694,7
+694,7
@@
int Proc_SpawnWorker(void (*Fcn)(void*), void *Data)
new->Status = THREAD_STAT_PREINIT;
Threads_AddActive( new );
new->Status = THREAD_STAT_PREINIT;
Threads_AddActive( new );
- return new
->TID
;
+ return new;
}
/**
}
/**
UCC
git Repository :: git.ucc.asn.au