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
[email protected]
:acess2
[tpg/acess2.git]
/
Kernel
/
arch
/
x86
/
proc.c
diff --git
a/Kernel/arch/x86/proc.c
b/Kernel/arch/x86/proc.c
index
ea8f8ad
..
b677dfd
100644
(file)
--- a/
Kernel/arch/x86/proc.c
+++ b/
Kernel/arch/x86/proc.c
@@
-998,6
+998,17
@@
void Proc_Scheduler(int CPU)
// Get next thread to run
thread = Threads_GetNextToRun(CPU, thread);
// Get next thread to run
thread = Threads_GetNextToRun(CPU, thread);
+
+ #if DEBUG_TRACE_SWITCH
+ if(thread) {
+ Log("Switching to task %i, CR3 = 0x%x, EIP = %p",
+ thread->TID,
+ thread->MemState.CR3,
+ thread->SavedState.EIP
+ );
+ }
+ #endif
+
// No avaliable tasks, just go into low power mode (idle thread)
if(thread == NULL) {
#if USE_MP
// No avaliable tasks, just go into low power mode (idle thread)
if(thread == NULL) {
#if USE_MP
@@
-1015,14
+1026,6
@@
void Proc_Scheduler(int CPU)
gCurrentThread = thread;
#endif
gCurrentThread = thread;
#endif
- #if DEBUG_TRACE_SWITCH
- Log("Switching to task %i, CR3 = 0x%x, EIP = %p",
- thread->TID,
- thread->MemState.CR3,
- thread->SavedState.EIP
- );
- #endif
-
#if USE_MP // MP Debug
// Log("CPU = %i, Thread %p", CPU, thread);
#endif
#if USE_MP // MP Debug
// Log("CPU = %i, Thread %p", CPU, thread);
#endif
UCC
git Repository :: git.ucc.asn.au