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:
Bowen Wang
2025-05-24 13:21:12 +08:00
committed by GUIDINGLI
parent e686a3ac42
commit 239130c1fd
5 changed files with 33 additions and 7 deletions
+4 -3
View File
@@ -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;