summaryrefslogtreecommitdiff
path: root/src/kernel/mem
diff options
context:
space:
mode:
authordzwdz2022-08-15 20:48:23 +0200
committerdzwdz2022-08-15 20:48:23 +0200
commit3e80780859c4cbe5223ca4329bfd6176f5c2c879 (patch)
tree92f42d2720d84434276c5382f1b43b8d73124827 /src/kernel/mem
parentfa082df2da6b3be52c66ce0d48c209a3df38115d (diff)
kernel: port to multiboot2
Diffstat (limited to 'src/kernel/mem')
-rw-r--r--src/kernel/mem/alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/mem/alloc.c b/src/kernel/mem/alloc.c
index 843adfc..7270021 100644
--- a/src/kernel/mem/alloc.c
+++ b/src/kernel/mem/alloc.c
@@ -53,6 +53,8 @@ void mem_init(struct kmain_info *info) {
pbitmap_len = pageamt / 8;
memset(pbitmap, 0, pbitmap_len);
bitmap_mark(pbitmap, pbitmap_len);
+
+ // TODO make boot.c handle this instead
bitmap_mark(info->init.at, info->init.size);
bitmap_mark(info->fb.at, info->fb.size);
}