Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
capsterx committed Nov 5, 2020
1 parent ce3d4c3 commit 98a591a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/third_party/luajit/src/lj_mcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ static void *mcode_alloc_at(jit_State *J, uintptr_t hint, size_t sz, int prot)

static void mcode_free(jit_State *J, void *p, size_t sz)
{
void * orig_p=get_orig_addr(p);
void * orig_p=get_orig(p);
svcUnmapProcessCodeMemory(envGetOwnProcessHandle(), (u64)p, (u64)orig_p, sz);
free(orig_p);
}

static int mcode_setprot(void *p, size_t sz, int prot)
{
void * orig_p=get_orig_addr(p);
void * orig_p=get_orig(p);
bool succeded=false;
// Switch lets us change from RW -> RX but not RX -> RW, unmap and map again
if (prot == MCPROT_RX)
Expand Down

0 comments on commit 98a591a

Please sign in to comment.