File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11pub ( crate ) mod paging;
22
33use memory_addresses:: arch:: x86_64:: { PhysAddr , VirtAddr } ;
4- #[ cfg( feature = "common-os" ) ]
5- use x86_64:: structures:: paging:: { PageSize , Size4KiB as BasePageSize } ;
64
7- #[ cfg( feature = "common-os" ) ]
8- use crate :: arch:: mm:: paging:: { PageTableEntryFlags , PageTableEntryFlagsExt } ;
95use crate :: mm:: { FrameAlloc , PageAlloc , PageRangeAllocator } ;
106
117#[ cfg( feature = "common-os" ) ]
128pub fn create_new_root_page_table ( ) -> usize {
139 use free_list:: PageLayout ;
1410 use x86_64:: registers:: control:: Cr3 ;
11+ use x86_64:: structures:: paging:: { PageSize , Size4KiB as BasePageSize } ;
1512
13+ use crate :: arch:: mm:: paging:: { PageTableEntryFlags , PageTableEntryFlagsExt } ;
1614 use crate :: mm:: { FrameAlloc , PageBox , PageRangeAllocator } ;
1715
1816 let layout = PageLayout :: from_size ( BasePageSize :: SIZE as usize ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments