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
task_init:
pop ecx
pop ebx
cli
mov ax, 0x23
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
push 0x23
push ebx
pushf
pop eax
or eax, 0x200
push eax
push 0x1B
push ecx
iret
pop ecx
pop ebx
cli
mov ax, 0x23
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov eax, ecx
push 0x23
push eax
pushf
push 0x1B
push ebx
iret