summaryrefslogtreecommitdiff
path: root/src/kernel/mem/alloc.c
diff options
context:
space:
mode:
authordzwdz2022-08-01 16:33:44 +0200
committerdzwdz2022-08-01 20:35:49 +0200
commit6a85c6ede66f723e1415552482e1c6640653efa2 (patch)
treebb3790a2d1f42d9cf3c69654f20cbd53cc929038 /src/kernel/mem/alloc.c
parent24a5f2bf46432aef70fd8d2ebf6c7ba94a6ce5a2 (diff)
amd64: /video/b device, provided by grub
Diffstat (limited to 'src/kernel/mem/alloc.c')
-rw-r--r--src/kernel/mem/alloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/mem/alloc.c b/src/kernel/mem/alloc.c
index 8d6fa5b..e3eaf41 100644
--- a/src/kernel/mem/alloc.c
+++ b/src/kernel/mem/alloc.c
@@ -74,6 +74,7 @@ static void bitmap_set(size_t i, bool v) {
}
void *page_alloc(size_t pages) {
+ // TODO can allocate in the framebuffer
/* i do realize how painfully slow this is */
size_t streak = 0;
for (size_t i = 0; i < page_bitmap_len * 8; i++) {