diff options
author | Alexis211 <alexis211@gmail.com> | 2010-02-03 17:50:30 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-02-03 17:50:30 +0100 |
commit | 6d849bc12d6afe2fe239c5a7dc581ba76d67974b (patch) | |
tree | a227121ed4e5d3ef86d5047fed7b5a0bbef33ead /doc/syscalls.txt | |
parent | 9c4310651a91e64c10a17f3190c895a49096aeb1 (diff) | |
download | TCE-6d849bc12d6afe2fe239c5a7dc581ba76d67974b.tar.gz TCE-6d849bc12d6afe2fe239c5a7dc581ba76d67974b.zip |
Start syscall work
Diffstat (limited to 'doc/syscalls.txt')
-rw-r--r-- | doc/syscalls.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/syscalls.txt b/doc/syscalls.txt new file mode 100644 index 0000000..f0e3f62 --- /dev/null +++ b/doc/syscalls.txt @@ -0,0 +1,11 @@ +Syscalls pass by int64. The identifier of the called function is in eax, parameters +are in ebx, ecx, edx, esi, edi. + +Syscall list : + +id=eax Name Parameters Description + 0 thread_exit ebx: return value (int) Signal kernel that current thread has finished + 1 schedule none Switch to next thread (might be the current one) + 2 thread_sleep ebx: time (int) msecs Tell kernel to put current thread to sleep + 3 process_exit ebx: return value (int) Tell kernel to end current process, cleaning up everything + |