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 @@ -79,7 +79,7 @@ impl MemorySet {
7979 fn push ( & mut self , mut map_area : MapArea , data : Option < & [ u8 ] > ) {
8080 map_area. map ( & mut self . page_table ) ;
8181 if let Some ( data) = data {
82- map_area. copy_data ( & mut self . page_table , data) ;
82+ map_area. copy_data ( & self . page_table , data) ;
8383 }
8484 self . areas . push ( map_area) ;
8585 }
@@ -339,7 +339,7 @@ impl MapArea {
339339 }
340340 /// data: start-aligned but maybe with shorter length
341341 /// assume that all frames were cleared before
342- pub fn copy_data ( & mut self , page_table : & mut PageTable , data : & [ u8 ] ) {
342+ pub fn copy_data ( & mut self , page_table : & PageTable , data : & [ u8 ] ) {
343343 assert_eq ! ( self . map_type, MapType :: Framed ) ;
344344 let mut start: usize = 0 ;
345345 let mut current_vpn = self . vpn_range . get_start ( ) ;
You can’t perform that action at this time.
0 commit comments