bdk: use size defines where applicable

This commit is contained in:
CTCaer
2021-10-01 15:03:18 +03:00
parent b47c01981f
commit c801ef8dda
6 changed files with 22 additions and 22 deletions

View File

@@ -263,7 +263,7 @@ static void _config_se_brom()
// se_key_acc_ctrl(15, SE_KEY_TBL_DIS_KEYREAD_FLAG);
// This memset needs to happen here, else TZRAM will behave weirdly later on.
memset((void *)TZRAM_BASE, 0, 0x10000);
memset((void *)TZRAM_BASE, 0, SZ_64K);
PMC(APBDEV_PMC_CRYPTO_OP) = PMC_CRYPTO_OP_SE_ENABLE;
SE(SE_INT_STATUS_REG) = 0x1F; // Clear all SE interrupts.