uC/OSII移植步驟 作者: 時間:2016-10-08 來源:網(wǎng)絡 加入技術交流群 掃碼加入和技術大咖面對面交流海量資料庫查詢 收藏 ; Pop new task's CPSRMSRSPSR_cxsf, R4LDMFDSP!, {R0-R12,LR,PC}^; Pop new task's contextRSEG CODE:CODE:NOROOT(2)CODE32OS_CPU_FIQ_ISRSTMFDSP!, {R1-R3}; PUSH WORKING REGISTERS ONTO FIQ STACKMOVR1, SP; SaveFIQ stack pointerADDSP, SP,#12; Adjust FIQ stack pointerSUBR2, LR,#4; Adjust PC for return address to taskMRSR3, SPSR; Copy SPSR (i.e. interrupted task's CPSR) to R3MSRCPSR_c, #(NO_INT | SVC32_MODE) ; Change to SVC mode 上一頁 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 下一頁
評論