提交 73df162d 编写于 作者: wuyangyong's avatar wuyangyong

fixed assembly warnings.

上级 2313424f
...@@ -183,13 +183,11 @@ rt_hw_context_switch_to PROC ...@@ -183,13 +183,11 @@ rt_hw_context_switch_to PROC
LDR r0, =NVIC_INT_CTRL LDR r0, =NVIC_INT_CTRL
LDR r1, =NVIC_PENDSVSET LDR r1, =NVIC_PENDSVSET
STR r1, [r0] STR r1, [r0]
NOP
; restore MSP ; restore MSP
LDR r0, =SCB_VTOR LDR r0, =SCB_VTOR
LDR r0, [r0] LDR r0, [r0]
LDR r0, [r0] LDR r0, [r0]
NOP
MSR msp, r0 MSR msp, r0
; enable interrupts at processor level ; enable interrupts at processor level
...@@ -216,4 +214,6 @@ HardFault_Handler PROC ...@@ -216,4 +214,6 @@ HardFault_Handler PROC
POP {pc} POP {pc}
ENDP ENDP
ALIGN 4
END END
...@@ -177,7 +177,6 @@ rt_hw_context_switch_to PROC ...@@ -177,7 +177,6 @@ rt_hw_context_switch_to PROC
rt_hw_interrupt_thread_switch PROC rt_hw_interrupt_thread_switch PROC
EXPORT rt_hw_interrupt_thread_switch EXPORT rt_hw_interrupt_thread_switch
BX lr BX lr
NOP
ENDP ENDP
IMPORT rt_hw_hard_fault_exception IMPORT rt_hw_hard_fault_exception
...@@ -203,5 +202,6 @@ HardFault_Handler PROC ...@@ -203,5 +202,6 @@ HardFault_Handler PROC
BX lr BX lr
ENDP ENDP
NOP ALIGN 4
END
\ No newline at end of file END
...@@ -218,7 +218,6 @@ rt_hw_context_switch_to PROC ...@@ -218,7 +218,6 @@ rt_hw_context_switch_to PROC
rt_hw_interrupt_thread_switch PROC rt_hw_interrupt_thread_switch PROC
EXPORT rt_hw_interrupt_thread_switch EXPORT rt_hw_interrupt_thread_switch
BX lr BX lr
NOP
ENDP ENDP
IMPORT rt_hw_hard_fault_exception IMPORT rt_hw_hard_fault_exception
...@@ -235,4 +234,6 @@ HardFault_Handler PROC ...@@ -235,4 +234,6 @@ HardFault_Handler PROC
BX lr BX lr
ENDP ENDP
ALIGN 4
END END
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册