Commit 314ad811 by Wez Committed by Wez

[Fuchsia] Use the read/write permission flag names when mapping VMOs.

The ZX_VM_FLAG_PERM_* names have been deprecated in favour of the ZX_VM_PERM_* form, and will shortly be removed from the Fuchsia SDK. Bug: chromium:925597 Change-Id: Ibb2d5c364fa62c9f7a0a9bb0cd715c41fd757522 Reviewed-on: https://swiftshader-review.googlesource.com/c/24068Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarWez <wez@google.com>
parent 543629bc
......@@ -216,7 +216,7 @@ void *allocateExecutable(size_t bytes)
}
zx_vaddr_t reservation;
zx_status_t status = zx_vmar_map(
zx_vmar_root_self(), ZX_VM_FLAG_PERM_READ | ZX_VM_FLAG_PERM_WRITE,
zx_vmar_root_self(), ZX_VM_PERM_READ | ZX_VM_PERM_WRITE,
0, vmo, 0, length, &reservation);
zx_handle_close(vmo);
if (status != ZX_OK) {
......@@ -256,7 +256,7 @@ void markExecutable(void *memory, size_t bytes)
VirtualProtect(memory, bytes, PAGE_EXECUTE_READ, &oldProtection);
#elif defined(__Fuchsia__)
zx_status_t status = zx_vmar_protect(
zx_vmar_root_self(), ZX_VM_FLAG_PERM_READ | ZX_VM_FLAG_PERM_EXECUTE,
zx_vmar_root_self(), ZX_VM_PERM_READ | ZX_VM_PERM_EXECUTE,
reinterpret_cast<zx_vaddr_t>(memory), bytes);
ASSERT(status != ZX_OK);
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment