I implemented the following C snippet as normal C file:
/* * test.c - Demonstrating the Secure Monitor Calls (SMCs) in am335x TI armv7 A8 architecture. */ #include <stdio.h> static inline void asm_enable_L2_ECC(void) { unsigned int reg_value;…