aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTianhao Wang <wth@riseup.net>2024-02-25 19:16:35 +0100
committerTianhao Wang <shrik3@mailbox.org>2024-06-11 15:13:39 +0200
commitd0b37d9f6e423576d84367090af41fcf03630121 (patch)
tree2fa5e790ce8cfed24c19898ac0f8120e91d89135 /src/lib.rs
parentb31c08a010d5113edb549dc6dda2f726f282277e (diff)
paging: add basic bitmap frame allocator
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d982d51..7bde927 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -35,6 +35,12 @@ pub extern "C" fn _entry() -> ! {
// interrupt::interrupt_enable();
//
// busy loop query keyboard
+ let mut framemap = mm::pma::FMap::new();
+ framemap.init();
+ println!("Bitmap starting from : {:p}", framemap.bm.as_ptr());
+ println!("Skip first {} bytes", framemap.skip_byte);
+
+
loop {
// let code = io::KBCTL_GLOBAL.lock().simple_read();
io::KBCTL_GLOBAL.lock().fetch_key();