linux/common: Stub out LockRegion/UnLockRegion when TARGET_NO_EXCEPTIONS
This commit is contained in:
parent
255d1bdb42
commit
4f86496773
|
@ -191,7 +191,7 @@ void cResetEvent::Wait()//Wait for signal , then reset
|
|||
|
||||
void VArray2::LockRegion(u32 offset,u32 size)
|
||||
{
|
||||
#if !defined(TARGET_NACL32)
|
||||
#if !defined(TARGET_NO_EXCEPTIONS)
|
||||
u32 inpage=offset & PAGE_MASK;
|
||||
u32 rv=mprotect (data+offset-inpage, size+inpage, PROT_READ );
|
||||
if (rv!=0)
|
||||
|
@ -242,7 +242,7 @@ void print_mem_addr()
|
|||
|
||||
void VArray2::UnLockRegion(u32 offset,u32 size)
|
||||
{
|
||||
#if !defined(TARGET_NACL32)
|
||||
#if !defined(TARGET_NO_EXCEPTIONS)
|
||||
u32 inpage=offset & PAGE_MASK;
|
||||
u32 rv=mprotect (data+offset-inpage, size+inpage, PROT_READ | PROT_WRITE);
|
||||
if (rv!=0)
|
||||
|
|
Loading…
Reference in New Issue