forked from OSchip/llvm-project
[NFC][compiler-rt][hwasan] Rename InitPrctl to InitializeOsSupport
The new name is something less linux-y and more platform generic. Once we finalize the tagged pointer ABI in zircon, we will do the appropriate check for fuchsia to see that TBI is enabled. Differential Revision: https://reviews.llvm.org/D105667
This commit is contained in:
parent
d564cfb53c
commit
89f778ceea
|
@ -275,7 +275,7 @@ static void InitLoadedGlobals() {
|
|||
static void InitInstrumentation() {
|
||||
if (hwasan_instrumentation_inited) return;
|
||||
|
||||
InitPrctl();
|
||||
InitializeOsSupport();
|
||||
|
||||
if (!InitShadow()) {
|
||||
Printf("FATAL: HWAddressSanitizer cannot mmap the shadow memory.\n");
|
||||
|
|
|
@ -102,7 +102,7 @@ extern bool hwasan_init_is_running;
|
|||
extern int hwasan_report_count;
|
||||
|
||||
bool InitShadow();
|
||||
void InitPrctl();
|
||||
void InitializeOsSupport();
|
||||
void InitThreads();
|
||||
void InitializeInterceptors();
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ static void InitializeShadowBaseAddress(uptr shadow_size_bytes) {
|
|||
FindDynamicShadowStart(shadow_size_bytes);
|
||||
}
|
||||
|
||||
void InitPrctl() {
|
||||
void InitializeOsSupport() {
|
||||
#define PR_SET_TAGGED_ADDR_CTRL 55
|
||||
#define PR_GET_TAGGED_ADDR_CTRL 56
|
||||
#define PR_TAGGED_ADDR_ENABLE (1UL << 0)
|
||||
|
|
Loading…
Reference in New Issue