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
Fixed bit arithmatic
[tpg/acess2.git]
/
Kernel
/
arch
/
x86
/
proc.c
diff --git
a/Kernel/arch/x86/proc.c
b/Kernel/arch/x86/proc.c
index
f04793a
..
76e96c9
100644
(file)
--- a/
Kernel/arch/x86/proc.c
+++ b/
Kernel/arch/x86/proc.c
@@
-11,7
+11,7
@@
#endif
// === FLAGS ===
#endif
// === FLAGS ===
-#define DEBUG_TRACE_SWITCH
1
+#define DEBUG_TRACE_SWITCH
0
// === CONSTANTS ===
#define SWITCH_MAGIC 0xFFFACE55 // There is no code in this area
// === CONSTANTS ===
#define SWITCH_MAGIC 0xFFFACE55 // There is no code in this area
@@
-309,12
+309,7
@@
int Proc_Clone(Uint *Err, Uint Flags)
newThread->SavedState.EIP = eip;
// Lock list and add to active
newThread->SavedState.EIP = eip;
// Lock list and add to active
- LOCK( &giThreadListLock );
- newThread->Next = gActiveThreads;
- gActiveThreads = newThread;
- giNumActiveThreads ++;
- giTotalTickets += newThread->NumTickets;
- RELEASE( &giThreadListLock );
+ Threads_AddActive(newThread);
Threads_Dump();
Threads_Dump();
UCC
git Repository :: git.ucc.asn.au