@@ -12,8 +12,7 @@ use x86_64::structures::paging::frame::PhysFrameRange;
1212use x86_64:: structures:: paging:: mapper:: { MapToError , MappedFrame , TranslateResult , UnmapError } ;
1313use x86_64:: structures:: paging:: page:: PageRange ;
1414use x86_64:: structures:: paging:: {
15- FrameAllocator , Mapper , OffsetPageTable , Page , PageTable , PhysFrame , RecursivePageTable ,
16- Size4KiB , Translate ,
15+ FrameAllocator , Mapper , OffsetPageTable , Page , PageTable , PhysFrame , Size4KiB , Translate ,
1716} ;
1817
1918use crate :: arch:: x86_64:: kernel:: processor;
@@ -148,7 +147,6 @@ pub fn map<S>(
148147 flags : PageTableEntryFlags ,
149148) where
150149 S : PageSize + Debug ,
151- for < ' a > RecursivePageTable < ' a > : Mapper < S > ,
152150 for < ' a > OffsetPageTable < ' a > : Mapper < S > ,
153151{
154152 let pages = {
@@ -208,7 +206,6 @@ pub fn map<S>(
208206pub fn map_heap < S > ( virt_addr : VirtAddr , count : usize ) -> Result < ( ) , usize >
209207where
210208 S : PageSize + Debug ,
211- for < ' a > RecursivePageTable < ' a > : Mapper < S > ,
212209 for < ' a > OffsetPageTable < ' a > : Mapper < S > ,
213210{
214211 let flags = {
@@ -232,7 +229,6 @@ where
232229pub fn identity_map < S > ( phys_addr : PhysAddr )
233230where
234231 S : PageSize + Debug ,
235- for < ' a > RecursivePageTable < ' a > : Mapper < S > ,
236232 for < ' a > OffsetPageTable < ' a > : Mapper < S > ,
237233{
238234 let frame = PhysFrame :: < S > :: from_start_address ( phys_addr. into ( ) ) . unwrap ( ) ;
@@ -258,7 +254,6 @@ where
258254pub fn unmap < S > ( virtual_address : VirtAddr , count : usize )
259255where
260256 S : PageSize + Debug ,
261- for < ' a > RecursivePageTable < ' a > : Mapper < S > ,
262257 for < ' a > OffsetPageTable < ' a > : Mapper < S > ,
263258{
264259 trace ! ( "Unmapping virtual address {virtual_address:p} ({count} pages)" ) ;
0 commit comments