From 6d849bc12d6afe2fe239c5a7dc581ba76d67974b Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Wed, 3 Feb 2010 17:50:30 +0100 Subject: Start syscall work --- doc/syscalls.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/syscalls.txt (limited to 'doc') 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 + -- cgit v1.2.3