Commit 054a0717 by malcolm

Oops x86 doesnt like pushing cr3, use ecx instead

parent 1788a858
Showing with 4 additions and 2 deletions
......@@ -7,12 +7,14 @@ context_switch:
push ebx
push esi
push edi
push cr3
mov ecx, cr3
push ecx
mov [eax], esp
mov esp, edx
pop cr3
pop ecx
mov cr3, ecx
pop edi
pop esi
pop ebx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment