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