From cb0bc7cf6f6d9732c07f5c782929fe11c3bb7f94 Mon Sep 17 00:00:00 2001
From: Amelia Coutard <eliottulio.coutard@gmail.com>
Date: Fri, 27 May 2022 02:28:19 +0200
Subject: [PATCH] Added a bit of stuff to docs.txt, and removed information
 that had nothing to do there

---
 docs.txt | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/docs.txt b/docs.txt
index d0838fa..071e38d 100644
--- a/docs.txt
+++ b/docs.txt
@@ -1,3 +1,5 @@
+ISOS - Incompatible System from Outer Space
+
 Memory mapping:
 	0x0000000000000000···xxxxxxxxxxxxxxxFFF = userspace text
 	xxxxxxxxxxxxxxy000···                   = userspace data & bss
@@ -7,6 +9,9 @@ Memory mapping:
 	0xFFFFC00000000000···0xFFFFFFFF7FFFFFFF (~64 TiB) = unused
 	0xFFFFFFFF80000000···0xFFFFFFFFFFFFFFFF (  2 GiB) = kernel
 
-Unused pages: First 8 bytes: size of current streak, in pages
-              Next 8 bytes: pointer to next stream (or 0 if no free memory after this streak).
-              All other bytes are unused.
+`syscall` is used for system calls. The ABI is the same as the System V ABI
+for function calls, except that %r10 is used instead of %rcx. %rax contains
+the id of the syscall.
+If %rdi is false, this is a normal exit (result like in System V ABI function call).
+If %rdi is true, this is an exit with an error, and the error code is in %rax.
+
-- 
2.46.0