mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
put in a comment about mprotect and getpagesize
This commit is contained in:
parent
abedda69b6
commit
6ee38af0be
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue