diff options
Diffstat (limited to 'Source/Kernel/TaskManager/Task.wtf.asm')
-rw-r--r-- | Source/Kernel/TaskManager/Task.wtf.asm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/Kernel/TaskManager/Task.wtf.asm b/Source/Kernel/TaskManager/Task.wtf.asm index 77db18e..2e5b9f8 100644 --- a/Source/Kernel/TaskManager/Task.wtf.asm +++ b/Source/Kernel/TaskManager/Task.wtf.asm @@ -47,3 +47,18 @@ copy_page_physical: popf ; Pop EFLAGS back. pop ebx ; Get the original value of EBX back. ret + + +[GLOBAL sample_task] +sample_task: + mov eax, 0x00000001 ;temporarily defined as syscall id for writing one char to screen + mov ebx, 'a' ;loopingly write a's to screen + int 64 + mov eax, 0x00000002 ;temporary syscall for sleeping + mov ebx, 20 ;20ms + int 64 + jmp sample_task + int 66 ;finish task - will never happen since we have an infinite loop +[GLOBAL sample_task_size] +sample_task_size: + dd sample_task_size - sample_task |