X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fsvm%2Fsvm_common.h;h=e523da50db6cb9fda274b84442669ba365e4bbe9;hb=ed234e7f151b05a5b8375dbd9f0add24fe8ebf2f;hp=58cd0e94f5c2ac433497d3335cb7d7f78fad7e06;hpb=a3eb63c58543ca9a651692502805bf8272ed6d79;p=vpp.git diff --git a/src/svm/svm_common.h b/src/svm/svm_common.h index 58cd0e94f5c..e523da50db6 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. @@ -124,7 +118,9 @@ int svm_region_init_chroot (const char *root_path); void svm_region_init_chroot_uid_gid (const char *root_path, int uid, int gid); void svm_region_init_args (svm_map_region_args_t * a); void svm_region_exit (void); +void svm_region_exit_client (void); void svm_region_unmap (void *rp_arg); +void svm_region_unmap_client (void *rp_arg); void svm_client_scan (const char *root_path); void svm_client_scan_this_region_nolock (svm_region_t * rp); u8 *shm_name_from_svm_map_region_args (svm_map_region_args_t * a);