From 8d48bbd9746228b63bafa5f92b621998d7d8f3d3 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 4 Oct 2026 10:49:41 -0400 Subject: move init fully to proc. remove init pages prealloc. prepare for scheduling --- lib/errstr.c | 10 +++++++++- lib/printf.c | 2 +- lib/virtterm.c | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/errstr.c b/lib/errstr.c index 6c4425d..d4aed8a 100644 --- a/lib/errstr.c +++ b/lib/errstr.c @@ -15,7 +15,15 @@ errstr(int err) [EHASMAP] = "HAS MAP", [EALIGN] = "ALIGNMENT ERROR", [EEXIST] = "ALREADY EXISTS", - [EBUSY] = "RESOURCE BUSY" + [EBUSY] = "RESOURCE BUSY", + [EEMPTY] = "EMPTY", + [EFULL] = "FULL", + [EOVERFLOW] = "OVERFLOW", + [EBADCALL] = "BAD CALL", + [EPERM] = "NO PERMISSION", + [EBADPROC] = "INVALID PROCESS", + [ENOMAIL] = "NO MAIL", + [ETIMEOUT] = "TIMEOUT" }; if(err >= sizeof(errstrs) / sizeof(const char*)) { return "UNKNOWN ERROR"; diff --git a/lib/printf.c b/lib/printf.c index 0a9cc15..7fa681e 100644 --- a/lib/printf.c +++ b/lib/printf.c @@ -1,6 +1,6 @@ #include "printf.h" #include "string.h" -#include "init.h" +#include "proc/init.h" #include "hal/obj.h" #include diff --git a/lib/virtterm.c b/lib/virtterm.c index 0daa921..8518530 100644 --- a/lib/virtterm.c +++ b/lib/virtterm.c @@ -2,7 +2,7 @@ #include "boot/cmdline.h" #include "boot/initrd.h" #include "hal/obj.h" -#include "init.h" +#include "proc/init.h" #include "jove.h" #include "hal/framebuffer.h" #include "lib/printf.h" -- cgit v1.2.3