arch/sim: dataheap should disable exec permission

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2024-03-11 20:34:47 +08:00 committed by Xiang Xiao
parent 593768e11e
commit 42ee317eab

View File

@ -108,7 +108,7 @@ void *up_dataheap_memalign(size_t align, size_t size)
if (g_dataheap == NULL)
{
g_dataheap = mm_initialize("dataheap",
host_allocheap(SIM_HEAP_SIZE, true),
host_allocheap(SIM_HEAP_SIZE, false),
SIM_HEAP_SIZE);
}