coretx-A35 register 操作
话不多说,直接上code.
CurrentEL & cpacr_el1
unsigned int current_el, cpacr, fpexc32;
__asm volatile ("mrs %0, CurrentEL\n" : "=r"(current_el));
__asm volatile ("mrs %0, cpacr_el1\n" : "=r"(cpacr));
printf("CurrentEL:%x, cpacr_el1:%x.\n",
current_el, cpacr)
原创
2020-05-27 22:04:59 ·
400 阅读 ·
0 评论