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 - Fixed freeze (I think)
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
arch
/
x86
/
proc.c
diff --git
a/KernelLand/Kernel/arch/x86/proc.c
b/KernelLand/Kernel/arch/x86/proc.c
index
8d85608
..
fb6b52d
100644
(file)
--- a/
KernelLand/Kernel/arch/x86/proc.c
+++ b/
KernelLand/Kernel/arch/x86/proc.c
@@
-978,14
+978,23
@@
void Proc_Reschedule(void)
*/
void Proc_Scheduler(int CPU)
{
*/
void Proc_Scheduler(int CPU)
{
+ #if USE_MP
+ if( GetCPUNum() )
+ gpMP_LocalAPIC->EOI.Val = 0;
+ else
+ #endif
+ outb(0x20, 0x20);
+ __asm__ __volatile__ ("sti");
+
+ gaCPUs[CPU].LastTimerThread = gaCPUs[CPU].Current;
+ // Call the timer update code
+ Timer_CallTimers();
+
// If two ticks happen within the same task, and it's not an idle task, swap
if( gaCPUs[CPU].Current->TID > giNumCPUs && gaCPUs[CPU].Current == gaCPUs[CPU].LastTimerThread )
{
Proc_Reschedule();
}
// If two ticks happen within the same task, and it's not an idle task, swap
if( gaCPUs[CPU].Current->TID > giNumCPUs && gaCPUs[CPU].Current == gaCPUs[CPU].LastTimerThread )
{
Proc_Reschedule();
}
- gaCPUs[CPU].LastTimerThread = gaCPUs[CPU].Current;
- // Call the timer update code
- Timer_CallTimers();
}
// === EXPORTS ===
}
// === EXPORTS ===
UCC
git Repository :: git.ucc.asn.au