Skip to content

Commit

Permalink
mm: bugfix #133: MapArea::copy_data does not need &mut PageTable
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfcyx committed Jun 30, 2024
1 parent 0073c24 commit 55ce06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os/src/mm/memory_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ impl MapArea {
}
/// data: start-aligned but maybe with shorter length
/// assume that all frames were cleared before
pub fn copy_data(&mut self, page_table: &mut PageTable, data: &[u8]) {
pub fn copy_data(&mut self, page_table: &PageTable, data: &[u8]) {
assert_eq!(self.map_type, MapType::Framed);
let mut start: usize = 0;
let mut current_vpn = self.vpn_range.get_start();
Expand Down

0 comments on commit 55ce06f

Please sign in to comment.