magic numbers evil

This commit is contained in:
Bill Currie 2003-07-17 21:45:01 +00:00
parent b36bd6a98c
commit 1f948c4206

View file

@ -347,7 +347,8 @@ Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
endaddr = (endaddr + psize - 1) & ~(psize - 1);
# endif
r = mprotect ((char *) startaddr, endaddr - startaddr, 7);
r = mprotect ((char *) startaddr, endaddr - startaddr,
PROT_EXEC | PROT_READ | PROT_WRITE);
if (r < 0)
Sys_Error ("Protection change failed");