Skip to content
Snippets Groups Projects
Commit 7009aab6 authored by John Hodge's avatar John Hodge
Browse files

Kernel/x86 - Fixed SMP bug, #if'd out some dead code

- SMP (- instead of +) in restoring EAX
 > You idiot TPG.
parent 229491b1
Branches
No related merge requests found
......@@ -188,7 +188,7 @@ Isr0xEE:
push eax ; Line up with interrupt number
mov eax, dr1 ; CPU Number
push eax
mov eax, [esp-4] ; Load EAX back
mov eax, [esp+4] ; Load EAX back
jmp SchedulerBase
; Spurious Interrupt
[global Isr0xEF]
......@@ -323,3 +323,5 @@ IRQCommon:
popa
add esp, 8 ; Error Code and ID
iret
; vim: ft=nasm ts=8
......@@ -973,6 +973,7 @@ void Proc_Reschedule(void)
*/
void Proc_Scheduler(int CPU)
{
#if 0
tThread *thread;
// If the spinlock is set, let it complete
......@@ -1005,7 +1006,6 @@ void Proc_Scheduler(int CPU)
regs->eflags &= ~0x100; // Clear TF
}
#if 0
// TODO: Ack timer?
#if USE_MP
if( GetCPUNum() )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment