Import
This commit is contained in:
0
docs/kernel/Syscalls/IO.md
Normal file
0
docs/kernel/Syscalls/IO.md
Normal file
0
docs/kernel/Syscalls/OS.md
Normal file
0
docs/kernel/Syscalls/OS.md
Normal file
14
docs/kernel/Syscalls/README.md
Normal file
14
docs/kernel/Syscalls/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Syscalls
|
||||
---
|
||||
|
||||
Syscalls allow for tasks to request somthing only the kernel can do (ex: reading a file).
|
||||
|
||||
Syscalls can be called in 2 ways, ```syscall.{id / name}(args...)``` or ```coroutine.yeild("syscall", {name / id}, args...)```.
|
||||
|
||||
Syscalls are also implemented as functions in
|
||||
```
|
||||
sleep(ms)
|
||||
print(...)
|
||||
printInline(...)
|
||||
printf(fmt, ...)
|
||||
```
|
||||
0
docs/kernel/Syscalls/TTY.md
Normal file
0
docs/kernel/Syscalls/TTY.md
Normal file
1
docs/kernel/Syscalls/VFS.md
Normal file
1
docs/kernel/Syscalls/VFS.md
Normal file
@@ -0,0 +1 @@
|
||||
This file contains documentation for VFS syscalls
|
||||
2
docs/kernel/Tasks/privacy.md
Normal file
2
docs/kernel/Tasks/privacy.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# Task privacy
|
||||
---
|
||||
32
docs/kernel/boot.cfg.md
Normal file
32
docs/kernel/boot.cfg.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# boot.cfg docs
|
||||
|
||||
The /boot/boot.cfg file contains configs for booting
|
||||
|
||||
```
|
||||
initPath<String>
|
||||
path that init takes to load the init system (systemd)
|
||||
|
||||
allowGloabalOverwrites<bool>
|
||||
allow modifying of gloabal env (usually for debug purposes)
|
||||
|
||||
enableAdvanacedDebug<bool>
|
||||
allow debug into the kernel
|
||||
|
||||
maxOpenFiles<num>
|
||||
maximum open files for the whole system
|
||||
|
||||
maxFilesPerTask<num>
|
||||
maximum open files for each task
|
||||
|
||||
preempt<bool>
|
||||
enable/disable preemptive multitasking
|
||||
|
||||
debugSyscalls<bool>
|
||||
logs syscalls and their return values aswell as what task executed them
|
||||
|
||||
logTaskExit<bool>
|
||||
logs task exits and errors
|
||||
|
||||
showModLoad<bool>
|
||||
log module loads
|
||||
```
|
||||
17
docs/kernel/bootloaders/diskAPI
Normal file
17
docs/kernel/bootloaders/diskAPI
Normal file
@@ -0,0 +1,17 @@
|
||||
--- Disk API Documentation ---
|
||||
string address = "EXAMPLE_DISK_ADDRESS"
|
||||
function disk:isReadOnly()
|
||||
function disk:spaceUsed()
|
||||
function disk:spaceTotal()
|
||||
function disk:list(path)
|
||||
function disk:fileExists(path)
|
||||
function disk:directoryExists(path)
|
||||
function disk:makeDirectory(path)
|
||||
function disk:remove(path)
|
||||
function disk:setLabel(label)
|
||||
function disk:getLabel(label)
|
||||
function disk:size(path)
|
||||
function disk:open(path, mode)
|
||||
function file:read(handle, count)
|
||||
function file:write(handle, data)
|
||||
function file:close(handle)
|
||||
14
docs/kernel/signals/list.md
Normal file
14
docs/kernel/signals/list.md
Normal file
@@ -0,0 +1,14 @@
|
||||
256 signals
|
||||
|
||||
| ID | Name / Description |
|
||||
| -- | ---------------------------------------------------------------------------------------------------------------------------|
|
||||
| 01 | SIGINT / send with ctrl + c
|
||||
| 02 |
|
||||
| 03 |
|
||||
| 04 |
|
||||
| 05 |
|
||||
| 06 |
|
||||
| 07 |
|
||||
| 08 |
|
||||
| 09 |
|
||||
| 0A |
|
||||
16
docs/terminal/palette_16.txt
Normal file
16
docs/terminal/palette_16.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
0: #000000
|
||||
1: #FFFFFF
|
||||
2: #FF0000
|
||||
3: #00FF00
|
||||
4: #0000FF
|
||||
5: #00FFFF
|
||||
6: #FF00FF
|
||||
7: #FFFF00
|
||||
8: #FF6D00
|
||||
9: #6DFF55
|
||||
10: #24FFFF
|
||||
11: #924900
|
||||
12: #6D6D55
|
||||
13: #DBDBAA
|
||||
14: #6D00FF
|
||||
15: #B6FF00
|
||||
Reference in New Issue
Block a user