官术网_书友最值得收藏!

Process state in ARM

In ARM architectures, applications usually run in the unprivileged Exception Level 0 (EL0) level, which is comparable to ring 3 on x86 architectures, and the OS kernel in EL1. The ARMv7 (AArch32, 32-bit) architecture has the SP in the general purpose register 13. For ARMv8 (AArch64, 64-bit), a dedicated SP register is implemented for each exception level: SP_EL0, SP_EL1, and so on.

For task state, the ARM architecture uses Program State Register (PSR) instances for the Current Program State Register (CPSR) or the Saved Program State Register (SPSR) program state's registers. The PSR is part of the Process State (PSTATE), which is an abstraction of the process state information.

While the ARM architecture is significantly different from the x86 architecture, when using software-based task switching, the basic principle does not change: save the current task's SP, register state, and put the next task's detail in there instead before resuming processing.

主站蜘蛛池模板: 色达县| 通州区| 普兰店市| 拉孜县| 酒泉市| 河东区| 吴江市| 巧家县| 柞水县| 东安县| 太湖县| 兴仁县| 厦门市| 大理市| 迁安市| 宜兰市| 来凤县| 射阳县| 河北区| 富顺县| 抚远县| 盐边县| 丰县| 慈利县| 嘉义县| 礼泉县| 特克斯县| 正镶白旗| 盐山县| 平邑县| 丹巴县| 陆良县| 黎平县| 白朗县| 六枝特区| 昭觉县| 公安县| 麦盖提县| 民丰县| 安陆市| 桦南县|