Other Parts Discussed in Thread: AM1808
Hi all,
How to write the ASM code in the C code function with the parameter transportation? for example, with the gcc,you can write you code as following
static inline void mmu_set_trans_tbl(uint32_t val)
{
asm volatile ("mcr 15, 0, %0, cr2, cr0, 0\n" : :"r" (val));
}
static inline uint32_t mmu_get_domain_ctrl(void)
{
uint32_t val;
asm volatile ("msr 15, 0, %0, cr3, cr0\n" : "=r" (val));
return val;
}
with the CCS , how to do it?
thanks!