summaryrefslogtreecommitdiff
path: root/src/sys/os
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-14 15:28:12 -0400
committerIan Moffett <ian@osmora.org>2025-09-14 15:28:12 -0400
commit3be168d44e469adcbb3d283999fce4bfe7ffa261 (patch)
tree35194fb3db1948b98f50c57cfcb660a958183d1d /src/sys/os
parent3b9e8a1aa73fed52268def39400b063030d0bc5c (diff)
os: vm: Add physical memory manager
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/os')
-rw-r--r--src/sys/os/Makefile1
-rw-r--r--src/sys/os/os_init.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/os/Makefile b/src/sys/os/Makefile
index c0bd363..f5d1530 100644
--- a/src/sys/os/Makefile
+++ b/src/sys/os/Makefile
@@ -6,6 +6,7 @@ override PROMPT := printf "%s\t\t%s\n"
TARGET_LIB = ../target/libkern.a
CFLAGS = -I../include/ -I../include/lib/ -I../target/header/ $(MI_CFLAGS) -O0
CFILES = $(shell find . -name "*.c")
+CFILES += $(shell find ../vm -name "*.c")
CFILES += $(shell find ../lib -name "*.c")
DEPS = $(CFILES:.c=.d)
diff --git a/src/sys/os/os_init.c b/src/sys/os/os_init.c
index 52d8979..bf4257d 100644
--- a/src/sys/os/os_init.c
+++ b/src/sys/os/os_init.c
@@ -2,6 +2,7 @@
#include <sys/panic.h>
#include <sys/syslog.h>
#include <sys/cpuvar.h>
+#include <vm/vm.h>
struct pcore g_bsp;
@@ -13,6 +14,7 @@ main(void)
{
cpu_conf(&g_bsp);
printf("booting l5 lunos v0.0.1...\n");
+ vm_init();
panic("end of kernel reached\n");
for (;;);
}