mirror of https://github.com/joan2937/pigpio
Revert "Remove excessive PROT_EXEC"
This commit is contained in:
parent
d4e20ead60
commit
f51642ad13
2
pigpio.c
2
pigpio.c
|
@ -7332,7 +7332,7 @@ static int initGrabLockFile(void)
|
||||||
static uint32_t * initMapMem(int fd, uint32_t addr, uint32_t len)
|
static uint32_t * initMapMem(int fd, uint32_t addr, uint32_t len)
|
||||||
{
|
{
|
||||||
return (uint32_t *) mmap(0, len,
|
return (uint32_t *) mmap(0, len,
|
||||||
PROT_READ|PROT_WRITE,
|
PROT_READ|PROT_WRITE|PROT_EXEC,
|
||||||
MAP_SHARED|MAP_LOCKED,
|
MAP_SHARED|MAP_LOCKED,
|
||||||
fd, addr);
|
fd, addr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue