Lines Matching refs:beg
42 void ReportMapRange(const char *descr, uptr beg, uptr size) { in ReportMapRange() argument
44 uptr end = beg + size - 1; in ReportMapRange()
45 VPrintf(1, "%s : 0x%zx - 0x%zx\n", descr, beg, end); in ReportMapRange()
49 static bool CheckMemoryRangeAvailability(uptr beg, uptr size, bool verbose) { in CheckMemoryRangeAvailability() argument
51 uptr end = beg + size - 1; in CheckMemoryRangeAvailability()
52 if (!MemoryRangeIsAvailable(beg, end)) { in CheckMemoryRangeAvailability()
54 Printf("FATAL: Memory range 0x%zx - 0x%zx is not available.\n", beg, in CheckMemoryRangeAvailability()
62 static bool ProtectMemoryRange(uptr beg, uptr size, const char *name) { in ProtectMemoryRange() argument
64 void *addr = MmapFixedNoAccess(beg, size, name); in ProtectMemoryRange()
65 if (beg == 0 && addr) { in ProtectMemoryRange()
69 beg += gap; in ProtectMemoryRange()
71 addr = MmapFixedNoAccess(beg, size, name); in ProtectMemoryRange()
73 if ((uptr)addr != beg) { in ProtectMemoryRange()
74 uptr end = beg + size - 1; in ProtectMemoryRange()
75 Printf("FATAL: Cannot protect memory range 0x%zx - 0x%zx (%s).\n", beg, in ProtectMemoryRange()