Replies: 2 comments 10 replies
-
For a bitmap allocator, you first need to reserve a portion of memory to store the bitmap. If one bit represents one physical frame, you need For allocating, you can then iterate through this bitmap to look for a bit that is To free a frame again, you need to calculate the corresponding bit number in the bitmap and set that bit to |
Beta Was this translation helpful? Give feedback.
-
Maybe I want to ask again about frame allocator. I've finally create frame allocator but is that correct ? (Code link : https://github.com/Ananta98/PetraOS/tree/master/src). Frame Allocator code in folder "mm/frame_allocator.rs". And I still confuse with my ATA, in identify function i've got error double fault exception why ? For my ATA code in "drivers/ata.rs". Thank you if you want to help. |
Beta Was this translation helpful? Give feedback.
-
Hello I'm new in rust osdev. In your article about paging, frame allocation using Area frame allocator. I want to use bitmap allocator, but the problem is memory region not in u32 so how to convert Area Frame allocator to bitmap allocator so i can implement deallocation in frame allocator.
Beta Was this translation helpful? Give feedback.
All reactions