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 @@ -77,7 +77,7 @@ impl MemorySet {
7777 pub fn push ( & mut self , mut map_area : MapArea , data : Option < & [ u8 ] > ) {
7878 map_area. map ( & mut self . page_table ) ;
7979 if let Some ( data) = data {
80- map_area. copy_data ( & mut self . page_table , data) ;
80+ map_area. copy_data ( & self . page_table , data) ;
8181 }
8282 self . areas . push ( map_area) ;
8383 }
@@ -316,7 +316,7 @@ impl MapArea {
316316 }
317317 /// data: start-aligned but maybe with shorter length
318318 /// assume that all frames were cleared before
319- pub fn copy_data ( & mut self , page_table : & mut PageTable , data : & [ u8 ] ) {
319+ pub fn copy_data ( & mut self , page_table : & PageTable , data : & [ u8 ] ) {
320320 assert_eq ! ( self . map_type, MapType :: Framed ) ;
321321 let mut start: usize = 0 ;
322322 let mut current_vpn = self . vpn_range . get_start ( ) ;
You can’t perform that action at this time.
0 commit comments