Fix task_init

I confused what was in ecx with what was in ebx. Swapping them fixed it
This commit is contained in:
pjht 2019-05-23 09:44:07 -05:00
parent 204fec4407
commit f513ee93a2

View File

@ -48,22 +48,18 @@ switch_to_task:
global task_init global task_init
task_init: task_init:
pop ecx pop ecx
pop ebx pop ebx
cli cli
mov ax, 0x23 mov ax, 0x23
mov ds, ax mov ds, ax
mov es, ax mov es, ax
mov fs, ax mov fs, ax
mov gs, ax mov gs, ax
mov eax, ecx
push 0x23 push 0x23
push ebx push eax
pushf pushf
pop eax push 0x1B
push ebx
or eax, 0x200 iret
push eax
push 0x1B
push ecx
iret