本帖最后由 liuchang890811 于 2015-8-21 08:36 编辑
如题:小弟最近在stm32板上上ucos,想了解下单片机关于底层方面的知识,例如堆栈,中断,指令集方面的东西,就像下面的这种我应该需要看哪些方面的书籍或者资料啊,恳请大神指教~~~
OS_CPU_PendSVHandler
CPSID I ; Prevent interruption during context switch
MRS R0, PSP ; PSP is process stack pointer
CBZ R0, OS_CPU_PendSVHandler_nosave ; Skip register save the first time
SUBS R0, R0, #0x20 ; Save remaining regs r4-11 on process stack
STM R0, {R4-R11}
LDR R1, =OSTCBCur ; OSTCBCur->OSTCBStkPtr = SP;
LDR R1, [R1]
STR R0, [R1] ; R0 is SP of process being switched out
|