Skip to content

Commit

Permalink
Make kernel_trap routed through long jumps
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Aug 9, 2019
1 parent 5bb8701 commit 2ee47fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VirtualSMC/kern_prov.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void VirtualSMCProvider::onPatcherLoad(KernelPatcher &kp) {
else
kernelTrapWrapper = reinterpret_cast<mach_vm_address_t>(kernelTrap<x86_saved_state_108_t>);
KernelPatcher::RouteRequest req("_kernel_trap", kernelTrapWrapper, orgKernelTrap);
if (!kp.routeMultiple(KernelPatcher::KernelID, &req, 1))
if (!kp.routeMultipleLong(KernelPatcher::KernelID, &req, 1))
return;

const SMCInfo::Memory *memInfo[AppleSMCBufferTotal] {
Expand Down

0 comments on commit 2ee47fc

Please sign in to comment.