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
Exteding Driver interface
[tpg/acess2.git]
/
Kernel
/
threads.c
diff --git
a/Kernel/threads.c
b/Kernel/threads.c
index
3be9789
..
90eb740
100644
(file)
--- a/
Kernel/threads.c
+++ b/
Kernel/threads.c
@@
-3,7
+3,7
@@
* threads.c
* - Common Thread Control
*/
* threads.c
* - Common Thread Control
*/
-#include <
common
.h>
+#include <
acess
.h>
#include <threads.h>
#include <errno.h>
#include <threads.h>
#include <errno.h>
@@
-335,7
+335,7
@@
void Threads_AddToDelete(tThread *Thread)
}
/**
}
/**
- * \fn tThread *Threads_int_GetPrev(tThread *List, tThread *Thread)
+ * \fn tThread *Threads_int_GetPrev(tThread *
*
List, tThread *Thread)
* \brief Gets the previous entry in a thead linked list
*/
tThread *Threads_int_GetPrev(tThread **List, tThread *Thread)
* \brief Gets the previous entry in a thead linked list
*/
tThread *Threads_int_GetPrev(tThread **List, tThread *Thread)
@@
-373,7
+373,8
@@
void Threads_Exit(int TID, int Status)
/**
* \fn void Threads_Kill(tThread *Thread, int Status)
* \brief Kill a thread
/**
* \fn void Threads_Kill(tThread *Thread, int Status)
* \brief Kill a thread
- * \param TID Thread ID (0 for current)
+ * \param Thread Thread to kill
+ * \param Status Status code to return to the parent
*/
void Threads_Kill(tThread *Thread, int Status)
{
*/
void Threads_Kill(tThread *Thread, int Status)
{
@@
-707,3
+708,6
@@
void Threads_SegFault(tVAddr Addr)
Warning("Thread #%i committed a segfault at address %p", Proc_GetCurThread()->TID, Addr);
Threads_Exit( 0, -1 );
}
Warning("Thread #%i committed a segfault at address %p", Proc_GetCurThread()->TID, Addr);
Threads_Exit( 0, -1 );
}
+
+// === EXPORTS ===
+EXPORT(Threads_GetUID);
UCC
git Repository :: git.ucc.asn.au