File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ impl PTEIterableSlice<PageTableEntryX64> for Entries64 {
4242 }
4343}
4444
45+ #[ repr( C ) ]
4546pub struct PageTableWith < T : PTEIterableSlice < E > , E : PTE > {
4647 entries : T ,
4748 phantom : PhantomData < E > ,
@@ -118,6 +119,7 @@ pub trait PTE {
118119 fn flags_mut ( & mut self ) -> & mut PageTableFlags ;
119120}
120121#[ derive( Copy , Clone ) ]
122+ #[ repr( C ) ]
121123pub struct PageTableEntryX32 ( u32 ) ;
122124
123125impl PTE for PageTableEntryX32 {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ pub trait Mapper {
3737 flags : PageTableFlags ,
3838 ) -> Result < Self :: MapperFlush , FlagUpdateError > {
3939 self . ref_entry ( page) . map ( |e| {
40- * e . flags_mut ( ) = flags;
40+ e . set ( e . frame :: < Self :: P > ( ) , flags) ;
4141 Self :: MapperFlush :: new ( page)
4242 } )
4343 }
You can’t perform that action at this time.
0 commit comments