Yi Chou has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/79078?usp=email )
Change subject: libpayload: Move ttb_buffer to a standalone section ......................................................................
libpayload: Move ttb_buffer to a standalone section
When cleaning the sensitive data in the memory, we will want to prevent zero out the content of tbb_buffer. Move the ttb_buffer to a standalone section will simplify the problem.
BUG=b:248610274 TEST=emerge-cherry libpayload BRANCH=none
Change-Id: I610276cbe30552263d791860c15e5ad9a201c744 Signed-off-by: Yi Chou yich@google.com --- M payloads/libpayload/arch/arm64/mmu.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/78/79078/1
diff --git a/payloads/libpayload/arch/arm64/mmu.c b/payloads/libpayload/arch/arm64/mmu.c index 4c8f8c1..8823cc0 100644 --- a/payloads/libpayload/arch/arm64/mmu.c +++ b/payloads/libpayload/arch/arm64/mmu.c @@ -41,7 +41,7 @@ static uint64_t *xlat_addr;
static int free_idx; -static uint8_t ttb_buffer[TTB_DEFAULT_SIZE] __attribute__((aligned(GRANULE_SIZE))); +static uint8_t ttb_buffer[TTB_DEFAULT_SIZE] __attribute__((aligned(GRANULE_SIZE),section(".ttb_buffer")));
static const char * const tag_to_string[] = { [TYPE_NORMAL_MEM] = "normal",