mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 10:23:23 +00:00
Use pointer metadata for page metadata
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
cd22854f59
commit
60365a818a
@ -50,7 +50,7 @@ use spin::Once;
|
||||
use super::{
|
||||
nr_subpage_per_huge,
|
||||
page::{
|
||||
meta::{mapping, KernelMeta, MetaPageMeta},
|
||||
meta::{impl_page_meta, mapping, MetaPageMeta},
|
||||
Page,
|
||||
},
|
||||
page_prop::{CachePolicy, PageFlags, PageProperty, PrivilegedPageFlags},
|
||||
@ -247,3 +247,9 @@ pub unsafe fn activate_kernel_page_table() {
|
||||
crate::mm::page_table::boot_pt::dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
/// The metadata of pages that contains the kernel itself.
|
||||
#[derive(Debug, Default)]
|
||||
pub struct KernelMeta {}
|
||||
|
||||
impl_page_meta!(KernelMeta);
|
||||
|
Reference in New Issue
Block a user