From 6200bd2d95ad6ff9a65f8b97b9335353e3a52c5e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 17 Jul 2021 19:58:02 +0200 Subject: detect the highest used memory address, and only allocate pages above it --- src/kernel/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/main.c') diff --git a/src/kernel/main.c b/src/kernel/main.c index d2f2e7f..761e499 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -9,7 +9,7 @@ void r3_test(); void kmain(struct kmain_info info) { log_write(info.init.at, info.init.size); log_const("mem..."); - mem_init(); + mem_init(&info); log_const("creating process..."); struct process *proc = process_new(r3_test); -- cgit v1.2.3