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 {
79
79
fn push ( & mut self , mut map_area : MapArea , data : Option < & [ u8 ] > ) {
80
80
map_area. map ( & mut self . page_table ) ;
81
81
if let Some ( data) = data {
82
- map_area. copy_data ( & mut self . page_table , data) ;
82
+ map_area. copy_data ( & self . page_table , data) ;
83
83
}
84
84
self . areas . push ( map_area) ;
85
85
}
@@ -339,7 +339,7 @@ impl MapArea {
339
339
}
340
340
/// data: start-aligned but maybe with shorter length
341
341
/// 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 ] ) {
343
343
assert_eq ! ( self . map_type, MapType :: Framed ) ;
344
344
let mut start: usize = 0 ;
345
345
let mut current_vpn = self . vpn_range . get_start ( ) ;
You can’t perform that action at this time.
0 commit comments