aboutsummaryrefslogtreecommitdiff
path: root/src/mm/pma.rs
diff options
context:
space:
mode:
authorTianhao Wang <wth@riseup.net>2024-02-05 14:04:25 +0100
committerTianhao Wang <shrik3@mailbox.org>2024-06-11 15:13:38 +0200
commit5e9190ff1a7d35e812b42c5bb9cbb742c2d313fb (patch)
tree39fca5cda21500f51488193018a45f65c768d0ad /src/mm/pma.rs
parent959d50d9117a0ed3f280bf7d5bfbffd1fa1a5740 (diff)
MM: add modules for memory management
Diffstat (limited to 'src/mm/pma.rs')
-rw-r--r--src/mm/pma.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm/pma.rs b/src/mm/pma.rs
new file mode 100644
index 0000000..f9a40ee
--- /dev/null
+++ b/src/mm/pma.rs
@@ -0,0 +1,9 @@
+use core::ffi::c_void;
+use crate::defs::Mem;
+// this is POC code, it will be ugly
+extern "C" {
+ static KERNEL_END: *const c_void;
+}
+
+// pub struct PageAlloctor;
+