libpayload/arch/arm64/mmu: Add CB_MEM_TAG to usedmem_ranges
CB_MEM_TAG is considered as an reserved memory. But we want to mange this region in the payload and release this region when MTE is inactive. Add CB_MEM_TAG memory range to usedmem_ranges to get a page table mapping and mark it as used. BUG=b:438666196,b:474306129 TEST=Check the tag region is wiped out in DEV mode. Change-Id: I498407cbd44b1cc70ef769a63b8e40665ea67b28 Signed-off-by: Yidi Lin <yidilin@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90702 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
18a986c5fe
commit
e705c39009
1 changed files with 1 additions and 0 deletions
|
|
@ -611,6 +611,7 @@ static void mmu_extract_ranges(struct memrange *cb_ranges,
|
|||
|
||||
switch (cb_ranges[i].type) {
|
||||
case CB_MEM_TABLE:
|
||||
case CB_MEM_TAG:
|
||||
/* Mark this memrange as used memory */
|
||||
if (mmu_add_memrange(&usedmem_ranges, base, size,
|
||||
TYPE_NORMAL_MEM) == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue