diff options
Diffstat (limited to 'src/kernel/tasks/process.asm')
-rw-r--r-- | src/kernel/tasks/process.asm | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/kernel/tasks/process.asm b/src/kernel/tasks/process.asm deleted file mode 100644 index a46ac3d..0000000 --- a/src/kernel/tasks/process.asm +++ /dev/null @@ -1,48 +0,0 @@ -[GLOBAL read_eip] -read_eip: - pop eax - jmp eax - -[GLOBAL copy_page_physical] -copy_page_physical: - push ebx - pushf - - cli - - mov ebx, [esp+12] - mov ecx, [esp+16] - - mov edx, cr0 - and edx, 0x7fffffff - mov cr0, edx - - mov edx, 1024 - -.loop: - mov eax, [ebx] - mov [ecx], eax - add ebx, 4 - add ecx, 4 - dec edx - jnz .loop - - mov edx, cr0 - or edx, 0x80000000 - mov cr0, edx - - popf - pop ebx - ret - -[GLOBAL perform_task_switch] -perform_task_switch: - cli - mov ecx, [esp+4] - mov eax, [esp+8] - mov ebp, [esp+12] - mov esp, [esp+16] - mov cr3, eax - mov eax, 0x12345 - sti - jmp ecx
\ No newline at end of file |