Skip to content

Commit

Permalink
Merge pull request #53 from vsntk18/gdbstub_remove_offset
Browse files Browse the repository at this point in the history
gdbstub: replace call to offset() with direct addition.
  • Loading branch information
joergroedel committed Jun 20, 2023
2 parents aa0c34a + aa0f117 commit 9c0c4eb
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 9c0c4eb

Please sign in to comment.