mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 19:03:27 +00:00
Add a PTE extension mechanism
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
513ac97969
commit
82bdadf754
@ -6,7 +6,7 @@ use core::mem::size_of;
|
||||
use log::warn;
|
||||
use pod::Pod;
|
||||
|
||||
use super::second_stage::{DeviceMode, PageTableConsts, PageTableEntry};
|
||||
use super::second_stage::{DeviceMode, PageTableConsts, PageTableEntry, PageTableFlags};
|
||||
use crate::{
|
||||
bus::pci::PciDeviceLocation,
|
||||
vm::{
|
||||
@ -296,6 +296,8 @@ impl ContextTable {
|
||||
&(paddr..paddr + PAGE_SIZE),
|
||||
MapProperty {
|
||||
perm: VmPerm::RW,
|
||||
global: false,
|
||||
extension: PageTableFlags::empty().bits(),
|
||||
cache: CachePolicy::Uncacheable,
|
||||
},
|
||||
);
|
||||
|
Reference in New Issue
Block a user