clean: remove useless code
This commit is contained in:
parent
d2f7a3ce26
commit
24c7ea8b19
@ -11,7 +11,7 @@ switch_to_task:
|
|||||||
|
|
||||||
// save the current stack pointer to the old stack
|
// save the current stack pointer to the old stack
|
||||||
mov [current_task+0], esp
|
mov [current_task+0], esp
|
||||||
|
|
||||||
mov edi, [esp_backup] // get eip
|
mov edi, [esp_backup] // get eip
|
||||||
mov [current_task+16], edi // save instruction before Interrupt
|
mov [current_task+16], edi // save instruction before Interrupt
|
||||||
|
|
||||||
@ -31,13 +31,14 @@ switch_to_task:
|
|||||||
je .END
|
je .END
|
||||||
// mov cr3, ebx
|
// mov cr3, ebx
|
||||||
|
|
||||||
// TODO replace the eip store in stack by the [current_task+16](current_task->eip)
|
|
||||||
|
.END:
|
||||||
mov edi, [current_task+16]
|
mov edi, [current_task+16]
|
||||||
mov [esp_backup], edi
|
mov [esp_backup], edi
|
||||||
.END:
|
|
||||||
pop esi
|
pop esi
|
||||||
pop edi
|
pop edi
|
||||||
pop ebp
|
pop ebp
|
||||||
pop ebx
|
pop ebx
|
||||||
|
|
||||||
ret // this will also change eip to the next task's instructions
|
ret
|
||||||
|
Loading…
Reference in New Issue
Block a user