diff options
author | Alexis211 <alexis211@gmail.com> | 2010-02-05 19:37:47 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-02-05 19:37:47 +0100 |
commit | c0018a3607947922a51597df12fd2a6528af2fa2 (patch) | |
tree | 031225d03933dfe4e1f2ace1d91f5e98bcfd94d4 /doc/syscalls.txt | |
parent | 674014901a1e90ce1587a7709fe9bf5893b0e36e (diff) | |
download | TCE-c0018a3607947922a51597df12fd2a6528af2fa2.tar.gz TCE-c0018a3607947922a51597df12fd2a6528af2fa2.zip |
More work on tasking, paging, syscalls, stuff.
Diffstat (limited to 'doc/syscalls.txt')
-rw-r--r-- | doc/syscalls.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/syscalls.txt b/doc/syscalls.txt index 542ec8b..236f8c3 100644 --- a/doc/syscalls.txt +++ b/doc/syscalls.txt @@ -4,8 +4,10 @@ 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 + 0 thread_exit none 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 4 printk ebx: addr of a string Print a message to screen + +If a processes wishes to exit with an error code, it HAS to use process_exit. thread_exit will do nothing. |