We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
asm("str lr,[sp, #-4]!"); asm("smc #0"); asm("mrc p15, 0, %0, c9, c1, 2" : "=r" (tcm_secure)); tcm_secure |= 1; asm("mcr p15, 0, %0, c9, c1, 2" /* set DTCM NS bit to 1 */ : : "r" (tcm_secure)); asm("movs pc, lr"); asm("ldr lr, [sp, #0]!");
It will be accessed in Non-secure world (cause I don't use TrustZone) but by default it's configured as secure TCM.