am cb256e5b: am d71b7d1b: am 02fb9c0f: am c8ad44c4: am 4d39411f: Merge "Support mprotect."

* commit 'cb256e5bce467084c7bb649e4d2268873f8a68e1':
  Support mprotect.
This commit is contained in:
Andrew Hsieh
2012-08-20 16:36:04 -07:00
committed by Android Git Automerger

View File

@@ -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));
}