Merge commit '287a9585dc85bff9b81e962f6be4f2b36512d345' * commit '287a9585dc85bff9b81e962f6be4f2b36512d345': Set PROT_EXEC on the whole pixelflinger code cache.
This commit is contained in:
commit
de58105fad
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ void Assembly::ensureMbaseExecutable()
|
|||
long pagemask = ~(pagesize - 1); // assumes pagesize is a power of 2
|
||||
|
||||
uint32_t* pageStart = (uint32_t*) (((uintptr_t) mBase) & pagemask);
|
||||
size_t adjustedLength = mBase - pageStart + mSize;
|
||||
size_t adjustedLength = (mBase - pageStart) * sizeof(uint32_t) + mSize;
|
||||
|
||||
if (mBase && mprotect(pageStart, adjustedLength, PROT_READ | PROT_WRITE | PROT_EXEC) != 0) {
|
||||
mspace_free(getMspace(), mBase);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue