Skip to content

Commit

Permalink
core: rename to core_mmu_init_phys_mem()
Browse files Browse the repository at this point in the history
Rename core_mmu_init_ta_ram() to core_mmu_init_phys_mem() for a more
accurate name of the function.

Signed-off-by: Jens Wiklander <[email protected]>
Reviewed-by: Etienne Carriere <[email protected]>
  • Loading branch information
jenswi-linaro authored and jforissier committed Sep 5, 2024
1 parent de19cac commit 90c1606
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions core/arch/arm/kernel/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,9 @@ static void init_runtime(unsigned long pageable_part)

/*
* Need physical memory pool initialized to be able to allocate
* secure DDR below.
* secure physical memory below.
*/
core_mmu_init_ta_ram();
core_mmu_init_phys_mem();

carve_out_asan_mem();

Expand Down Expand Up @@ -891,7 +891,7 @@ void init_tee_runtime(void)
{
#ifndef CFG_WITH_PAGER
/* Pager initializes TA RAM early */
core_mmu_init_ta_ram();
core_mmu_init_phys_mem();
#endif
/*
* With virtualization we call this function when creating the
Expand Down
2 changes: 1 addition & 1 deletion core/arch/riscv/kernel/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static void init_runtime(void)

void init_tee_runtime(void)
{
core_mmu_init_ta_ram();
core_mmu_init_phys_mem();
call_preinitcalls();
call_initcalls();
}
Expand Down
4 changes: 2 additions & 2 deletions core/include/mm/core_mmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,8 @@ void core_mmu_set_default_prtn_tbl(void);

void core_mmu_init_virtualization(void);

/* init some allocation pools */
void core_mmu_init_ta_ram(void);
/* Initialize physical memory pool */
void core_mmu_init_phys_mem(void);

void core_init_mmu(struct memory_map *mem_map);

Expand Down
2 changes: 1 addition & 1 deletion core/mm/core_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,7 @@ static TEE_Result teecore_init_pub_ram(void)
early_init(teecore_init_pub_ram);
#endif /*CFG_CORE_RESERVED_SHM*/

void core_mmu_init_ta_ram(void)
void core_mmu_init_phys_mem(void)
{
vaddr_t s = 0;
vaddr_t e = 0;
Expand Down

0 comments on commit 90c1606

Please sign in to comment.