diff options
author | jieqiang wang <jieqiang.wang@arm.com> | 2019-10-22 15:54:40 +0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-12-17 18:19:50 +0000 |
commit | 842506f3c9ac8136642d3f9b49bb73f05f63cfdb (patch) | |
tree | 73cfd6bffec1b77953e792aad5d329dbb219555e /src/vlib | |
parent | 3be9351e5e5c54f76544836044c6e81df8a0b899 (diff) |
vlib: add max-size configuration parameter for pmalloc
Enable 'max-size' configuration parameter to set maximum size of
memory space allocated for pmalloc module. This parameter along
with existing 'base-addr' falls into physmem section. Both are
dedicated parameters to pmalloc module.
Type: feature
Change-Id: I939f25156b9a43440a24d69a7397d57eb6c2d392
Signed-off-by: Jieqiang Wang <Jieqiang.Wang@arm.com>
Diffstat (limited to 'src/vlib')
-rwxr-xr-x | src/vlib/physmem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vlib/physmem.c b/src/vlib/physmem.c index 40346fc2f70..846f9a091ae 100755 --- a/src/vlib/physmem.c +++ b/src/vlib/physmem.c @@ -178,6 +178,9 @@ vlib_physmem_config (vlib_main_t * vm, unformat_input_t * input) { if (unformat (input, "base-addr 0x%lx", &vpm->base_addr)) ; + else if (unformat (input, "max-size %U", + unformat_memory_size, &vpm->max_size)) + ; else return unformat_parse_error (input); } |