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,中断函数的返回地址也用到这个了)
|