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
Kernel - Changed Threads_CloneTCB (removed Err ptr)
[tpg/acess2.git]
/
Kernel
/
threads.c
diff --git
a/Kernel/threads.c
b/Kernel/threads.c
index
10226a1
..
76041f5
100644
(file)
--- a/
Kernel/threads.c
+++ b/
Kernel/threads.c
@@
-233,12
+233,10
@@
void Threads_SetPriority(tThread *Thread, int Pri)
}
/**
}
/**
- * \fn tThread *Threads_CloneTCB(Uint *Err, Uint Flags)
* \brief Clone the TCB of the current thread
* \brief Clone the TCB of the current thread
- * \param Err Error pointer
* \param Flags Flags for something... (What is this for?)
*/
* \param Flags Flags for something... (What is this for?)
*/
-tThread *Threads_CloneTCB(Uint
*Err, Uint
Flags)
+tThread *Threads_CloneTCB(Uint Flags)
{
tThread *cur, *new;
int i;
{
tThread *cur, *new;
int i;
@@
-246,7
+244,7
@@
tThread *Threads_CloneTCB(Uint *Err, Uint Flags)
// Allocate and duplicate
new = malloc(sizeof(tThread));
// Allocate and duplicate
new = malloc(sizeof(tThread));
- if(new == NULL) {
*Err
= -ENOMEM; return NULL; }
+ if(new == NULL) {
errno
= -ENOMEM; return NULL; }
memcpy(new, cur, sizeof(tThread));
new->CurCPU = -1;
memcpy(new, cur, sizeof(tThread));
new->CurCPU = -1;
@@
-309,8
+307,7
@@
tThread *Threads_CloneTCB(Uint *Err, Uint Flags)
}
/**
}
/**
- * \fn tThread *Threads_CloneTCB(Uint *Err, Uint Flags)
- * \brief Clone the TCB of the current thread
+ * \brief Clone the TCB of the kernel thread
*/
tThread *Threads_CloneThreadZero(void)
{
*/
tThread *Threads_CloneThreadZero(void)
{
UCC
git Repository :: git.ucc.asn.au