soc: ace_v1x: unmap entire unused virtual space
This patch corrects the initial unmapping of unused l2 memory to unmap until the end of virtual address space instead of unmapping until the end of l2 physical memory. Signed-off-by: Jaroslaw Stelter <Jaroslaw.Stelter@intel.com>
This commit is contained in:
parent
8b598539f2
commit
afb156a1eb
1 changed files with 3 additions and 2 deletions
|
@ -681,9 +681,10 @@ static int sys_mm_drv_mm_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/*
|
||||
* Unmap unused physical pages from the TLB to save power
|
||||
* Unmap all unused physical pages from the entire
|
||||
* virtual address space to save power
|
||||
*/
|
||||
size_t unused_size = L2_SRAM_BASE + L2_SRAM_SIZE -
|
||||
size_t unused_size = CONFIG_KERNEL_VM_BASE + CONFIG_KERNEL_VM_SIZE -
|
||||
unused_l2_start_aligned;
|
||||
|
||||
ret = sys_mm_drv_unmap_region(UINT_TO_POINTER(unused_l2_start_aligned),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue