SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
14
emulators/bochs/patches/patch-cpu_paging_cc
Normal file
14
emulators/bochs/patches/patch-cpu_paging_cc
Normal file
|
@ -0,0 +1,14 @@
|
|||
fix format string
|
||||
|
||||
Index: cpu/paging.cc
|
||||
--- cpu/paging.cc.orig
|
||||
+++ cpu/paging.cc
|
||||
@@ -804,7 +804,7 @@ bx_phy_address BX_CPU_C::translate_linear_long_mode(bx
|
||||
// - R/W bit=0 and Dirty=1 for leaf entry
|
||||
bool shadow_stack_page = ((combined_access & BX_COMBINED_ACCESS_WRITE) != 0) && ((entry[leaf] & 0x40) != 0) && ((entry[leaf] & 0x02) == 0);
|
||||
if (!shadow_stack_page) {
|
||||
- BX_DEBUG(("shadow stack access to not shadow stack page CA=%x entry=%lx\n", combined_access, Bit32u(entry[leaf] & 0xfff)));
|
||||
+ BX_DEBUG(("shadow stack access to not shadow stack page CA=%x entry=%x\n", combined_access, Bit32u(entry[leaf] & 0xfff)));
|
||||
page_fault(ERROR_PROTECTION, laddr, user, rw);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue