[PATCH] D56360: [compiler-rt][Fuchsia] Replace _zx_vmar_allocate_old call

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 5 20:59:15 PST 2019


phosek created this revision.
phosek added a reviewer: mcgrathr.
Herald added subscribers: Sanitizers, llvm-commits, dberris, kubamracek.

This is the deprecated legacy interface, replace it with the current
_zx_vmar_allocate one.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D56360

Files:
  compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc


Index: compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
+++ compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
@@ -210,10 +210,10 @@
   uintptr_t base;
   zx_handle_t vmar;
   zx_status_t status =
-      _zx_vmar_allocate_old(_zx_vmar_root_self(), 0, init_size,
-                            ZX_VM_FLAG_CAN_MAP_READ | ZX_VM_FLAG_CAN_MAP_WRITE |
-                                ZX_VM_FLAG_CAN_MAP_SPECIFIC,
-                            &vmar, &base);
+      _zx_vmar_allocate(
+          _zx_vmar_root_self(),
+          ZX_VM_CAN_MAP_READ | ZX_VM_CAN_MAP_WRITE | ZX_VM_CAN_MAP_SPECIFIC,
+          0, init_size, &vmar, &base);
   if (status != ZX_OK)
     ReportMmapFailureAndDie(init_size, name, "zx_vmar_allocate", status);
   base_ = reinterpret_cast<void *>(base);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56360.180389.patch
Type: text/x-patch
Size: 903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190106/733f6dd0/attachment.bin>


More information about the llvm-commits mailing list