summaryrefslogtreecommitdiff
path: root/include/bump.h
diff options
context:
space:
mode:
authorNathan Lee <me@nwlee.tech>2026-06-19 19:05:01 -0500
committerNathan Lee <me@nwlee.tech>2026-06-19 19:05:01 -0500
commit5c15e93fa87800b1f8fae7ef688a9d41221526f1 (patch)
tree2b8ed7b696edc9889b588dd79db14c564ea9a77e /include/bump.h
parentb106df2447d23d6b3fcffa7cc87edde218d054f3 (diff)
create dtb allocator
the parent commit (b106df2447d23d6b3fcffa7cc87edde218d054f3) discussed the possibility of creating dtb device discovery. for that, we have replaced wdt device discovery with dtb device discovery. in the future, we will use the pci kernel module to use device discovery via a PCI controller
Diffstat (limited to 'include/bump.h')
-rw-r--r--include/bump.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bump.h b/include/bump.h
new file mode 100644
index 0000000..81cd571
--- /dev/null
+++ b/include/bump.h
@@ -0,0 +1,10 @@
+#pragma once
+#include <types.h>
+#include <dtb.h>
+#include <mem.h>
+#define EHEAP_SIZE (512 * 1024)
+
+
+void* kemalloc(size_t size);
+struct mem_info *km_find_memory(struct dt_node *head);
+