arch/sim: Remove the wrong comment from up_allocate_heap
forget from https://github.com/apache/nuttx/pull/11043 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
ab2a4838d7
commit
20783635d4
|
@ -599,18 +599,7 @@ void up_allocate_heap(void **heap_start, size_t *heap_size)
|
|||
|
||||
void up_allocate_heap(void **heap_start, size_t *heap_size)
|
||||
{
|
||||
/* Note: Some subsystems like modlib and binfmt need to allocate
|
||||
* executable memory.
|
||||
*/
|
||||
|
||||
/* We make the entire heap executable here to keep
|
||||
* the sim simpler. If it turns out to be a problem, the
|
||||
* ARCH_HAVE_TEXT_HEAP mechanism can be an alternative.
|
||||
*/
|
||||
|
||||
uint8_t *sim_heap = host_allocheap(SIM_HEAP_SIZE, false);
|
||||
|
||||
*heap_start = sim_heap;
|
||||
*heap_start = host_allocheap(SIM_HEAP_SIZE, false);
|
||||
*heap_size = SIM_HEAP_SIZE;
|
||||
}
|
||||
|
||||
|
|
|
@ -216,7 +216,7 @@ int host_waitpid(pid_t pid);
|
|||
|
||||
/* sim_hostmemory.c *********************************************************/
|
||||
|
||||
void *host_allocheap(size_t sz, bool exec);
|
||||
void *host_allocheap(size_t size, bool exec);
|
||||
void host_freeheap(void *mem);
|
||||
void *host_allocshmem(const char *name, size_t size, int master);
|
||||
void host_freeshmem(void *mem);
|
||||
|
|
|
@ -36,9 +36,9 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void *host_allocheap(size_t sz, bool exec)
|
||||
void *host_allocheap(size_t size, bool exec)
|
||||
{
|
||||
return _aligned_malloc(sz, 8);
|
||||
return _aligned_malloc(size, 8);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in New Issue