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

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.

主站蜘蛛池模板: 漳平市| 宁乡县| 基隆市| 上饶县| 阿克苏市| 淳化县| 临桂县| 右玉县| 丰原市| 师宗县| 诸城市| 高台县| 鄂托克前旗| 鸡泽县| 泌阳县| 玉溪市| 于田县| 宣威市| 湟中县| 和平区| 太仓市| 黄浦区| 洪江市| 巴南区| 达孜县| 梅河口市| 霞浦县| 康保县| 专栏| 新闻| 图木舒克市| 巨鹿县| 镇赉县| 洞头县| 紫云| 类乌齐县| 光山县| 汝阳县| 长宁区| 玛多县| 利川市|