Skip to content

Commit 530ede8

Browse files
authored
Fixes for intel (#5)
1 parent 720c09c commit 530ede8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Sources/SimpleDebugger/emg_vm_protect.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#import "emg_vm_protect.h"
99
#import <mach/mach.h>
1010

11+
#if defined(__arm64__) || defined(__aarch64__)
12+
1113
extern kern_return_t _kern_rpc_emg_vm_prot_trap(
1214
mach_port_name_t target,
1315
mach_vm_address_t address,
@@ -29,3 +31,5 @@ asm(
2931
kern_return_t emg_vm_protect(mach_port_t target, mach_vm_address_t address, mach_vm_size_t size, boolean_t set_maximum, vm_prot_t new_protection) {
3032
return _kern_rpc_emg_vm_prot_trap(target, address, size, set_maximum, new_protection);
3133
}
34+
35+
#endif

Sources/SimpleDebugger/emg_vm_protect.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#import <mach/mach.h>
99

10+
#if defined(__arm64__) || defined(__aarch64__)
11+
1012
#ifndef EMG_VM_PROTECT
1113
#define EMG_VM_PROTECT
1214

@@ -21,3 +23,5 @@ kern_return_t emg_vm_protect(mach_port_t target, mach_vm_address_t address, mach
2123
#endif
2224

2325
#endif
26+
27+
#endif

0 commit comments

Comments
 (0)