File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl MemorySet {
7474 fn push ( & mut self , mut map_area : MapArea , data : Option < & [ u8 ] > ) {
7575 map_area. map ( & mut self . page_table ) ;
7676 if let Some ( data) = data {
77- map_area. copy_data ( & mut self . page_table , data) ;
77+ map_area. copy_data ( & self . page_table , data) ;
7878 }
7979 self . areas . push ( map_area) ;
8080 }
@@ -308,7 +308,7 @@ impl MapArea {
308308 }
309309 /// data: start-aligned but maybe with shorter length
310310 /// assume that all frames were cleared before
311- pub fn copy_data ( & mut self , page_table : & mut PageTable , data : & [ u8 ] ) {
311+ pub fn copy_data ( & mut self , page_table : & PageTable , data : & [ u8 ] ) {
312312 assert_eq ! ( self . map_type, MapType :: Framed ) ;
313313 let mut start: usize = 0 ;
314314 let mut current_vpn = self . vpn_range . get_start ( ) ;
You can’t perform that action at this time.
0 commit comments