diff --git a/cpu/i386/tasking_helpers.asm b/cpu/i386/tasking_helpers.asm index 2201d77..7458f6a 100644 --- a/cpu/i386/tasking_helpers.asm +++ b/cpu/i386/tasking_helpers.asm @@ -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