summaryrefslogtreecommitdiff
path: root/src/init
AgeCommit message (Collapse)Author
2021-08-22await() 2: pass the exit messagedzwdz
2021-08-18await() 1: wait for child to die, without message passingdzwdz
The length is a int, because the syscall will have a signed output. A negative return value will mean an error (such as when it gets called by a childless process).
2021-08-18fork() now has a return value; you can tell the child and parent apartdzwdz
2021-08-18store the processes as a tree instead of a listdzwdz
I'm about to need that for waits(). There's no single list of processes for simplicity's sake, but the search will now be even slower and it might even introduce a potential vuln! How fun! Someone could override stuff in .bss with random values. I'll either make gcc check if it hasn't gone past the end of the stack, or turn this into a non recursive function.
2021-08-14init: add multipageify(), so i can test virt_iter in an simpler waydzwdz
2021-08-12init: preserve registers in _syscall()dzwdz
2021-08-11read _syscall_debuglog arguments across page boundariesdzwdz
2021-07-31change the syscall naming convention; same one in kernel and userlanddzwdz
2021-07-26exit() now switches to the first running processdzwdz
i used a linked list because it's the simplest way to implement this
2021-07-26fork() pt 1: cloning process memorydzwdz
2021-07-24fix some warningsdzwdz
2021-07-23add a barebones exit() syscalldzwdz
2021-07-22don't map the VGA console buffer in user processesdzwdz
2021-07-22implement the debuglog() syscalldzwdz
2021-07-21syscall parameter & return value passingdzwdz
Sadly, sysenter on i386 limits me to only 4 arguments (so, 1 for the syscall id + 3 real args). If that turns out to be an issue I'll either just switch to interrupts, or switch to x64.
2021-07-21barebones syscalldzwdz
2021-07-20per-process virtual memorydzwdz
VGA is only mapped into the virtual memory because there are no other ways of interacting with the OS.
2021-07-18basic executable loadingdzwdz