From 5ec560b7a0b5cea60bbda61a48fcc4e9866ce6b1 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 18 Aug 2021 17:14:22 +0200 Subject: store the processes as a tree instead of a list 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. --- src/init/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/init') diff --git a/src/init/main.c b/src/init/main.c index 00f8f31..a59ce9c 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -19,6 +19,11 @@ int main() { multipageify("I cross pages. "), sizeof("I cross pages. ") - 1); + _syscall_fork(); + + _syscall_debuglog("fork ", + sizeof("fork ") - 1); + _syscall_exit("bye from init! ", sizeof("bye from init! ") - 1); } -- cgit v1.2.3