Skip to content

Commit

Permalink
gdbstub: replace call to offset() with direct addition.
Browse files Browse the repository at this point in the history
Address::offset() function has been removed in 39b92fb.

Signed-off-by: Vasant Karasulli <vkarasulli@suse.de>
  • Loading branch information
vsntk18 committed Jun 19, 2023
1 parent aa0c34a commit aa0f117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug/gdbstub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ pub mod svsm_gdbstub {
};

let guard = PerCPUPageMappingGuard::create_4k(phys.page_align())?;
return unsafe { write_u8(guard.virt_addr().offset(phys.page_offset()), value) };
return unsafe { write_u8(guard.virt_addr() + phys.page_offset(), value) };
}
}

Expand Down

0 comments on commit aa0f117

Please sign in to comment.