aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/svm/svm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/svm/svm.c b/src/svm/svm.c
index 313fe4a8787..b844e20b4cc 100644
--- a/src/svm/svm.c
+++ b/src/svm/svm.c
@@ -60,10 +60,6 @@ svm_get_root_rp (void)
u64
svm_get_global_region_base_va ()
{
-#ifdef CLIB_SANITIZE_ADDR
- return 0x200000000000;
-#endif
-
#if __aarch64__
/* On AArch64 VA space can have different size, from 36 to 48 bits.
Here we are trying to detect VA bits by parsing /proc/self/maps
@@ -94,6 +90,9 @@ svm_get_global_region_base_va ()
clib_unix_error ("unexpected va bits '%u'", bits);
#endif
+#ifdef CLIB_SANITIZE_ADDR
+ return 0x200000000000;
+#endif
/* default value */
return 0x130000000ULL;
}