ucos-汇编程序

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

IMPORTOSRunningIMPORTOSPrioCurIMPORTOSPrioHighRdyIMPORTOSTCBCurIMPORTOSTCBHighRdyIMPORTOSIntNestingIMPORTOSIntExitIMPORTOSTaskSwHookEXPORTOSStartHighRdyEXPORTOSCtxSwEXPORTOSIntCtxSwEXPORTOS_CPU_SR_SaveEXPORTOS_CPU_SR_RestoreEXPORTPendSV_HandlerAREA|.text|,CODE,READONLYTHUMBREQUIRE8PRESERVE8NVIC_INT_CTRLEQU0xE000ED04NVIC_SYSPRI4EQU0xE000ED22NVIC_PENDSV_PRIEQU0xFFNVIC_PENDSVSETEQU0x10000000OS_CPU_SR_SaveMRSR0,PRIMASKCPSIDIBXLROS_CPU_SR_RestoreMSRPRIMASK,R0BXLROSStartHighRdyLDRR0,=NVIC_SYSPRI4LDRR1,=NVIC_PENDSV_PRISTRBR1,[R0]MOVR0,#0MSRPSP,R0LDRR0,=OSRunningMOVR1,#1STRBR1,[R0]LDRR0,=NVIC_INT_CTRLLDRR1,=NVIC_PENDSVSETSTRR1,[R0]CPSIEIOSStartHangBOSStartHangOSCtxSwLDRR0,=NVIC_INT_CTRLLDRR1,=NVIC_PENDSVSETSTRR1,[R0]BXLROSIntCtxSwLDRR0,=NVIC_INT_CTRLLDRR1,=NVIC_PENDSVSETSTRR1,[R0]BXLRPendSV_HandlerCPSIDIMRSR0,PSPCBZR0,PendSV_Handler_NosaveSUBSR0,R0,#0x20STMR0,{R4-R11}LDRR1,=OSTCBCurLDRR1,[R1]STRR0,[R1]PendSV_Handler_NosavePUSH{R14}LDRR0,=OSTaskSwHookBLXR0POP{R14}LDRR0,=OSPrioCurLDRR1,=OSPrioHighRdyLDRBR2,[R1]STRBR2,[R0]LDRR0,=OSTCBCurLDRR1,=OSTCBHighRdyLDRR2,[R1]STRR2,[R0]LDRR0,[R2]LDMR0,{R4-R11}ADDSR0,R0,#0x20MSRPSP,R0ORRLR,LR,#0x04CPSIEIBXLRend

1 / 4
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功