summaryrefslogtreecommitdiffstats
path: root/src/svm/svm_common.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-01-08 16:35:35 +0100
committerDave Barach <openvpp@barachs.net>2018-01-10 02:17:31 +0000
commitaec8f8984771cabc79a8ed64f56afcf61465d00a (patch)
tree5c870e08fc7f9e2104d42664b4a826c1efb9073b /src/svm/svm_common.h
parent618c94a83f0a76734b69f829a417fdd0f87e6887 (diff)
svm: calc base address on AArch64 based on autodetected VA space size
Change-Id: I7487eb74b8deebff849d662b55a6708566ccd9ef Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/svm/svm_common.h')
-rw-r--r--src/svm/svm_common.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/svm/svm_common.h b/src/svm/svm_common.h
index 58cd0e94f5c..c650165b4cf 100644
--- a/src/svm/svm_common.h
+++ b/src/svm/svm_common.h
@@ -85,13 +85,7 @@ typedef struct svm_map_region_args_
*/
#define SVM_GLOBAL_REGION_SIZE (64<<20)
#define SVM_GLOBAL_REGION_NAME "/global_vm"
-#if defined (__aarch64__)
-#define VA_BITS 48
-#define BASEVA ((1ul << VA_BITS) / 4)
-#define SVM_GLOBAL_REGION_BASEVA (BASEVA - (2 * SVM_GLOBAL_REGION_SIZE))
-#else
-#define SVM_GLOBAL_REGION_BASEVA 0x30000000
-#endif
+u64 svm_get_global_region_base_va ();
/*
* Memory shared across individual router instances.