diff options
author | Benji Dial <benji6283@gmail.com> | 2020-09-06 15:47:06 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2020-09-06 15:47:06 -0400 |
commit | b8284137d4e0eec11c78bc14047243fce6a51373 (patch) | |
tree | 5969602dc3d090b536edccbf34d33d46a300c192 /doc | |
parent | 73bb0e48640b842824a0b45fe4854df8ff7faf7b (diff) | |
download | portland-os-b8284137d4e0eec11c78bc14047243fce6a51373.tar.gz |
minor changes, redoing makefile, meminfo program
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ints.txt | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/ints.txt b/doc/ints.txt index 2a97049..cd91f60 100644 --- a/doc/ints.txt +++ b/doc/ints.txt @@ -11,6 +11,7 @@ args in ebx, ecx, edx, esi, edi result in eax note: do not assume eax is unmodified if there is no value to be returned modifies ecx, edx +see table 1 file system calls have units of bytes unless otherwise specified functions returning handles or pointers use 0 to indicate error @@ -20,6 +21,8 @@ see keys.txt for the return type of the "get key" system call invalid system call numbers change eax to -1, and have no other effect. +table 1: + function | eax | eax out | ebx | ecx | edx | esi | edi ---------------|-----|---------------|---------------|-------------|-------|--------|----- open file | 0x0 | handle | drive number | path | | | @@ -29,4 +32,18 @@ invalid system call numbers change eax to -1, and have no other effect. start task | 0x4 | success | drive number | path | | | log string | 0x5 | | sz string | | | | get key | 0x6 | keycode | | | | | - allocate ram | 0x7 | start pointer | pages | | | |
\ No newline at end of file + allocate ram | 0x7 | start pointer | pages | | | | + memory info | 0x8 | see table 2 | see table 2 | | | | + + +table 2: +all values are in units of pages +eax -1 indicates unrecognized ebx + + ebx | eax out +-----|-------------------------- + 0x0 | kernel dynamic area size + 0x1 | kernel dynamic area left + 0x2 | total userspace size + 0x3 | total userspace left + 0x4 | this process memory left
\ No newline at end of file |