diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_mcode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lj_mcode.c b/src/lj_mcode.c index 3eaee054..de785a09 100644 --- a/src/lj_mcode.c +++ b/src/lj_mcode.c | |||
| @@ -206,6 +206,9 @@ static void mcode_protect(jit_State *J, int prot) | |||
| 206 | 206 | ||
| 207 | #if LJ_TARGET_X64 | 207 | #if LJ_TARGET_X64 |
| 208 | #define mcode_validptr(p) ((p) && (uintptr_t)(p) < (uintptr_t)1<<47) | 208 | #define mcode_validptr(p) ((p) && (uintptr_t)(p) < (uintptr_t)1<<47) |
| 209 | #elif LJ_TARGET_ARM64 | ||
| 210 | /* We have no clue about the valid VA range. It could be 39 - 52 bits. */ | ||
| 211 | #define mcode_validptr(p) (p) | ||
| 209 | #else | 212 | #else |
| 210 | #define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000) | 213 | #define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000) |
| 211 | #endif | 214 | #endif |
