ARM 处理器基础知识

论坛 期权论坛 脚本     
已经匿名di用户   2022-7-2 21:48   2541   0

ARM处理器支持7中处理器模式,分别是:

处理器模式用途 Linux中
User正常程序运行普通应用模式
FIQ用于快速中断
IRQ普通中断模式
Supervisor操作系统用的保护模式Linux内核
Abort在虚拟内存或者内存保护下的模式
Undefined软件指令未定义或异常的模式
System操作系统任务的模式

ARM处理器寄存器个数:37个,其中,通用寄存器31个,状态寄存器器6个



通用寄存器分三种:

1. The unbanked registers, R0 to R7

2. The banked registers, R8 to R14

3.Register 15, the PC, is described in Register 15 and the program counter


note:

Registers R13 and R14 have six banked physical registers each,Register R13 is normally used as a stack pointer and is also known as the SP。Register R14 (also known as the Link Register or LR) has two special functions in the architecture.(LR 用于保存函数返回地址,程序调用子函数后,执行完退出通过将lr赋给pc,中断函数的返回地址也用到这个了)



分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:81
帖子:4969
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP