diff options
author | David Johnson <davijoh3@cisco.com> | 2018-12-14 14:53:41 -0500 |
---|---|---|
committer | David Johnson <davijoh3@cisco.com> | 2019-01-02 10:55:55 -0500 |
commit | d9818dd68c162079f3ddb5443a78d0d91d55d0fe (patch) | |
tree | 71a597e8fb2c9c7ebd70870ae78091872591e216 /src/svm/svm_common.h | |
parent | d6897c1597c4f0904d5956f7d794e3f001d52f72 (diff) |
Fixes for buliding for 32bit targets:
* u32/u64/uword mismatches
* pointer-to-int fixes
* printf formatting issues
* issues with incorrect "ULL" and related suffixes
* structure alignment and padding issues
Change-Id: I70b989007758755fe8211c074f651150680f60b4
Signed-off-by: David Johnson <davijoh3@cisco.com>
Diffstat (limited to 'src/svm/svm_common.h')
-rw-r--r-- | src/svm/svm_common.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/svm/svm_common.h b/src/svm/svm_common.h index e523da50db6..ce07c37b24e 100644 --- a/src/svm/svm_common.h +++ b/src/svm/svm_common.h @@ -66,7 +66,7 @@ typedef struct svm_map_region_args_ { const char *root_path; /* NULL means use the truly global arena */ const char *name; - u64 baseva; + uword baseva; u64 size; u64 pvt_heap_size; uword flags; @@ -77,6 +77,16 @@ typedef struct svm_map_region_args_ int gid; } svm_map_region_args_t; +/* + * Memory mapped to high addresses for session/vppcom/vcl/etc... + */ +#if __WORDSIZE == 64 +#define HIGH_SEGMENT_BASEVA (8ULL << 30) /* 8GB */ +#elif __WORDSIZE == 32 +#define HIGH_SEGMENT_BASEVA (3584UL << 20) /* 3.5GB */ +#else +#error "unknown __WORDSIZE" +#endif /* * Memory shared across all router instances. Packet buffers, etc |