diff options
| author | Ian Moffett <ian@osmora.org> | 2025-11-16 14:34:14 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-11-16 14:34:14 -0500 |
| commit | 5ed7a0707f13662384ef77bec3faaaffdfd36772 (patch) | |
| tree | b312c412f0aafae484b77ac1dda712dfca03a269 /sys/kern | |
| parent | 2ff21cc5011f0359715d4ac557ea7a1e64d1b5d5 (diff) | |
kern/amd64+mu: Add initial virtual memory sources
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/Makefile | 3 | ||||
| -rw-r--r-- | sys/kern/kern_init.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/Makefile b/sys/kern/Makefile index b04e252..718df06 100644 --- a/sys/kern/Makefile +++ b/sys/kern/Makefile @@ -6,6 +6,7 @@ CFILES += $(shell find ../lib -name "*.c") CFILES += $(shell find ../os -name "*.c") CFILES += $(shell find ../vm -name "*.c") CFILES += $(shell find ../dev -name "*.c") +CFILES += $(shell find ../mu -name "*.c") OFILES = $(CFILES:.c=.o) DFILES = $(CFILES:.c=.d) CC = @@ -17,4 +18,4 @@ all: $(OFILES) -include $(DFILES) %.o: %.c $(PROMPT) " [CC] " $< - $(CC) -c $< $(SYS_CFLAGS) -MMD -I../inc/ -I../inc/lib -o $@ + $(CC) -c $< $(SYS_CFLAGS) -MMD -I../target/inc/ -I../inc/ -I../inc/lib -o $@ diff --git a/sys/kern/kern_init.c b/sys/kern/kern_init.c index 74e17c4..68fb2fb 100644 --- a/sys/kern/kern_init.c +++ b/sys/kern/kern_init.c @@ -31,6 +31,7 @@ #include <dev/cons/cons.h> #include <os/trace.h> #include <vm/phys.h> +#include <vm/vm.h> struct console g_bootcons; void kmain(void); @@ -41,4 +42,5 @@ kmain(void) console_reset(&g_bootcons); trace("bootcons: console online\n"); vm_phys_init(); + vm_init(); } |
