mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
chore: FrameCap: fix typo and rename func
This commit is contained in:
parent
f0891ff87d
commit
c710cdcd15
@ -29,7 +29,7 @@ impl KernelObject for FrameObject {
|
||||
* > args[1]: | asid | base_ptr | unused |
|
||||
* > | [63:48] | [47:9] | [8:0] |
|
||||
*
|
||||
* in out implementation, FrameCap layout:
|
||||
* in our implementation, FrameCap layout:
|
||||
* > args[0]: [asid, frame_size, is_device, vm_right]
|
||||
* > args[1]: mapped_addr
|
||||
* > ptr: base_ptr
|
||||
@ -92,7 +92,7 @@ impl<'a> FrameCap<'a> {
|
||||
1 << bits
|
||||
}
|
||||
|
||||
pub fn asid(&self) -> usize {
|
||||
pub fn mapped_asid(&self) -> usize {
|
||||
(self.cte.cap.get().args[0] >> Self::ASID_OFFSET) & Self::ASID_MASK
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user