This commit is contained in:
SpartanSoftware
2026-02-20 21:25:55 -06:00
commit 2a6a11a701
180 changed files with 18499 additions and 0 deletions

View File

View File

View 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, ...)
```

View File

View File

@@ -0,0 +1 @@
This file contains documentation for VFS syscalls

View File

@@ -0,0 +1,2 @@
# Task privacy
---

32
docs/kernel/boot.cfg.md Normal file
View 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
```

View 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)

View 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 |

View 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