mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Move Frame::start_address to memory/mod.rs and use it in identity_map()
This commit is contained in:
@@ -44,9 +44,3 @@ bitflags! {
|
||||
const NO_EXECUTE = 1 << 63,
|
||||
}
|
||||
}
|
||||
|
||||
impl Frame {
|
||||
fn start_address(&self) -> PhysicalAddress {
|
||||
self.number << 12
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user