mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
mm/mm_heap: add nokasan flag in mm_heap_config_s structure
Support enable/disable the kasan when initialize the heap. This requirement is from rptun, because rptun use share memory init the heap and share memory is precious, so we need disable the kasan feature for rptun's heap to save the share memory. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com> Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
This commit is contained in:
@@ -311,9 +311,10 @@ static int rptun_init_carveout(FAR struct rptun_priv_s *priv,
|
||||
}
|
||||
|
||||
memset(&config, 0, sizeof(config));
|
||||
config.name = shmname;
|
||||
config.start = shmbase;
|
||||
config.size = shmlen;
|
||||
config.name = shmname;
|
||||
config.start = shmbase;
|
||||
config.size = shmlen;
|
||||
config.nokasan = true;
|
||||
|
||||
carveout->base = shmbase;
|
||||
carveout->size = shmlen;
|
||||
|
||||
Reference in New Issue
Block a user