Home
last modified time | relevance | path

Searched refs:fixed_addr (Results 1 – 5 of 5) sorted by relevance

/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix_libcdep.cc333 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoReserve() argument
339 uptr p = internal_mmap((void *)(fixed_addr & ~(PageSize - 1)), in MmapFixedNoReserve()
346 SanitizerToolName, size, size, fixed_addr, reserrno); in MmapFixedNoReserve()
353 uptr ReservedAddressRange::Init(uptr size, const char *name, uptr fixed_addr) { in Init() argument
359 base_ = fixed_addr ? MmapFixedNoAccess(fixed_addr, size) : MmapNoAccess(size); in Init()
368 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr size) { in Map() argument
369 return reinterpret_cast<uptr>(MmapFixedOrDieOnFatalError(fixed_addr, size)); in Map()
372 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr size) { in MapOrDie() argument
373 return reinterpret_cast<uptr>(MmapFixedOrDie(fixed_addr, size)); in MapOrDie()
387 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoAccess() argument
[all …]
H A Dsanitizer_win.cc233 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie() argument
234 void *p = VirtualAlloc((LPVOID)fixed_addr, size, in MmapFixedOrDie()
239 fixed_addr); in MmapFixedOrDie()
247 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr size) { in Map() argument
251 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr size) { in MapOrDie() argument
252 return reinterpret_cast<uptr>(MmapFixedOrDie(fixed_addr, size)); in MapOrDie()
264 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size) { in MmapFixedOrDieOnFatalError() argument
265 void *p = VirtualAlloc((LPVOID)fixed_addr, size, in MmapFixedOrDieOnFatalError()
270 fixed_addr); in MmapFixedOrDieOnFatalError()
282 base_ = fixed_addr ? MmapFixedNoAccess(fixed_addr, size) : MmapNoAccess(size); in Init()
[all …]
H A Dsanitizer_posix.cc120 void *MmapFixedImpl(uptr fixed_addr, uptr size, bool tolerate_enomem) { in MmapFixedImpl() argument
122 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)), in MmapFixedImpl()
133 fixed_addr); in MmapFixedImpl()
140 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie() argument
141 return MmapFixedImpl(fixed_addr, size, false /*tolerate_enomem*/); in MmapFixedOrDie()
144 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size) { in MmapFixedOrDieOnFatalError() argument
145 return MmapFixedImpl(fixed_addr, size, true /*tolerate_enomem*/); in MmapFixedOrDieOnFatalError()
H A Dsanitizer_fuchsia.cc207 uptr fixed_addr) { in Init() argument
227 static uptr DoMmapFixedOrDie(zx_handle_t vmar, uptr fixed_addr, uptr map_size, in DoMmapFixedOrDie() argument
229 uptr offset = fixed_addr - reinterpret_cast<uptr>(base); in DoMmapFixedOrDie()
256 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr map_size) { in Map() argument
257 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, in Map()
261 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr map_size) { in MapOrDie() argument
262 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, in MapOrDie()
302 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoAccess() argument
H A Dsanitizer_common.h102 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name = nullptr)
105 void *MmapFixedOrDie(uptr fixed_addr, uptr size);
108 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size);
109 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name = nullptr);
143 uptr Init(uptr size, const char *name = nullptr, uptr fixed_addr = 0);
144 uptr Map(uptr fixed_addr, uptr size);
145 uptr MapOrDie(uptr fixed_addr, uptr size);