am 4d39411f: Merge "Support mprotect."
* commit '4d39411f7d41e3c931f8be6b1455ba9627fa71b9': Support mprotect.
This commit is contained in:
@@ -85,3 +85,9 @@ void *mmap_portable(void *addr, size_t size, int prot, int flags, int fd, long o
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
extern int mprotect(const void *, size_t, int);
|
||||
int mprotect_portable(const void *addr, size_t size, int prot)
|
||||
{
|
||||
return mprotect(addr, size, mips_change_prot(prot));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user