简体   繁体   English

ARM Linux下的特权模式

[英]Privileged mode under ARM Linux

I'm using an ARM Cortex-A8. 我正在使用ARM Cortex-A8。 There is Linux Debian 4.6.2-11 distribution. 有Linux Debian 4.6.2-11发行版。 I'm trying to get access the SysTick counter by reading SYST_RVR register, but now have Segmentation fault. 我试图通过读取SYST_RVR寄存器来访问SysTick计数器,但现在有了Segmentation故障。 In this regard, I have a question, whether it is accessible in privileged mode only? 在这方面,我有一个问题,是否只能在特权模式下访问? Since SegFault can be meant that a process is accessing a memory address, which is prohibited to it. 因为SegFault可以表示进程正在访问禁止它的内存地址。

I also followed this thread How to measure program execution time in ARM Cortex-A8 processor? 我也跟着这个线程如何测量ARM Cortex-A8处理器中的程序执行时间? and also have "Illegal instruction" message 并且还有“非法指令”消息

Are you trying to access it via 0xE000E014? 您是否尝试通过0xE000E014访问它? There's no such register on Cortex A series. Cortex A系列上没有这样的注册表。 It makes sense if you get illegal access / segmentation error. 如果您获得非法访问/分段错误,这是有道理的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM