put in a comment about mprotect and getpagesize

This commit is contained in:
Bill Currie 2003-07-21 22:24:28 +00:00
parent abedda69b6
commit 6ee38af0be

View file

@ -353,7 +353,8 @@ Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
endaddr = (endaddr + psize - 1) & ~(psize - 1);
# endif
# endif
// systems with mprotect but not getpagesize (or similar) probably don't
// need to page align the arguments to mprotect (eg, QNX)
r = mprotect ((char *) startaddr, endaddr - startaddr,
PROT_EXEC | PROT_READ | PROT_WRITE);