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://cadel.mutabah.net/acess2
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
arch
/
armv7
/
proc.c
diff --git
a/KernelLand/Kernel/arch/armv7/proc.c
b/KernelLand/Kernel/arch/armv7/proc.c
index
cd998f2
..
fa1e02c
100644
(file)
--- a/
KernelLand/Kernel/arch/armv7/proc.c
+++ b/
KernelLand/Kernel/arch/armv7/proc.c
@@
-130,13
+130,13
@@
tTID Proc_Clone(Uint Flags)
return new->TID;
}
return new->TID;
}
-
int
Proc_SpawnWorker( void (*Fnc)(void*), void *Ptr )
+
tThread *
Proc_SpawnWorker( void (*Fnc)(void*), void *Ptr )
{
tThread *new;
Uint32 sp;
new = Threads_CloneThreadZero();
{
tThread *new;
Uint32 sp;
new = Threads_CloneThreadZero();
- if(!new) return
-1
;
+ if(!new) return
NULL
;
if(new->ThreadName) free(new->ThreadName);
new->ThreadName = NULL;
if(new->ThreadName) free(new->ThreadName);
new->ThreadName = NULL;
@@
-144,7
+144,7
@@
int Proc_SpawnWorker( void (*Fnc)(void*), void *Ptr )
if(!new->KernelStack) {
// TODO: Delete thread
Log_Error("Proc", "Unable to allocate kernel stack");
if(!new->KernelStack) {
// TODO: Delete thread
Log_Error("Proc", "Unable to allocate kernel stack");
- return
-1
;
+ return
NULL
;
}
sp = new->KernelStack;
}
sp = new->KernelStack;
@@
-158,7
+158,7
@@
int Proc_SpawnWorker( void (*Fnc)(void*), void *Ptr )
Threads_AddActive(new);
Threads_AddActive(new);
- return new
->TID
;
+ return new;
}
tTID Proc_NewKThread( void (*Fnc)(void*), void *Ptr )
}
tTID Proc_NewKThread( void (*Fnc)(void*), void *Ptr )
UCC
git Repository :: git.ucc.asn.au