Get further in userspace.

This commit is contained in:
4lDO2
2023-06-21 11:19:41 +02:00
parent 490e1b2777
commit 8cfbc39b9f
4 changed files with 156 additions and 57 deletions
+6 -1
View File
@@ -74,10 +74,15 @@ pub fn deallocate_frames(frame: Frame, count: usize) {
/// A frame, allocated by the frame allocator.
/// Do not add more derives, or make anything `pub`!
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
#[derive(PartialEq, Eq, PartialOrd, Ord)]
pub struct Frame {
number: usize
}
impl core::fmt::Debug for Frame {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "[frame at {:p}]", self.start_address().data() as *const u8)
}
}
impl Frame {
/// Get the address of this frame