summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/syscalls.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/syscalls.txt b/doc/syscalls.txt
index 236f8c3..530fbab 100644
--- a/doc/syscalls.txt
+++ b/doc/syscalls.txt
@@ -9,5 +9,7 @@ id=eax Name Parameters Description
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
+ 5 thread_new ebx: entry point Creates a new thread
+ ecx: data pointer
If a processes wishes to exit with an error code, it HAS to use process_exit. thread_exit will do nothing.