Other Parts Discussed in Thread: AM3358
Tool/software: Linux
Hello,
I would like to ask yet another question: How to switch from Nonsecure privileged mode (supervisor mode) to Secure privileged mode (monitor mode)?
Since this code sequence shows how to determine if the processor was configured to include parity and ECC RAM:
MRC p15, 1, <Rd>, c9, c0, 2 ; Read L2 Cache Auxiliary Control Register ORR <Rd>, <Rd>, #0x0020_0000; Set parity/ECC enable MCR p15, 1, <Rd>, c9, c0, 2 ; Write L2 Cache Auxiliary Control Register MRC p15, 1, <Rd>, c9, c0, 2 ; Read L2 Cache Auxiliary Control Register TST <Rd>, #0x0020_0000 ; Test for parity/ECC enableBEQ no_parity_ram_setup
which needs to be in Secure privileged mode to do write to L2 Cache Auxiliary Control Register?
TI am3358 does NOT have the following instruction:
smc #1; // secure monitor call SMC (previously SMI) - NOT implemented in armv7
Snippet of the code doing that will be an excellent example, I guess!
Thank you,
_nobody_