aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlibmemory/memory_api.c
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/vlibmemory/memory_api.c
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/vlibmemory/memory_api.c')
-rw-r--r--src/vlibmemory/memory_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlibmemory/memory_api.c b/src/vlibmemory/memory_api.c
index d049a625015..752f50717b0 100644
--- a/src/vlibmemory/memory_api.c
+++ b/src/vlibmemory/memory_api.c
@@ -871,7 +871,7 @@ vlibmemory_init (vlib_main_t * vm)
a->root_path = am->root_path;
a->name = SVM_GLOBAL_REGION_NAME;
a->baseva = (am->global_baseva != 0) ?
- am->global_baseva : SVM_GLOBAL_REGION_BASEVA;
+ am->global_baseva : +svm_get_global_region_base_va ();
a->size = (am->global_size != 0) ? am->global_size : SVM_GLOBAL_REGION_SIZE;
a->flags = SVM_FLAGS_NODATA;
a->uid = am->api_uid;