fixed assembly warnings.

This commit is contained in:
aozima 2015-05-13 11:54:10 +08:00
parent 2313424f81
commit 73df162d3f
3 changed files with 7 additions and 6 deletions

View File

@ -183,13 +183,11 @@ rt_hw_context_switch_to PROC
LDR r0, =NVIC_INT_CTRL
LDR r1, =NVIC_PENDSVSET
STR r1, [r0]
NOP
; restore MSP
LDR r0, =SCB_VTOR
LDR r0, [r0]
LDR r0, [r0]
NOP
MSR msp, r0
; enable interrupts at processor level
@ -216,4 +214,6 @@ HardFault_Handler PROC
POP {pc}
ENDP
ALIGN 4
END

View File

@ -177,7 +177,6 @@ rt_hw_context_switch_to PROC
rt_hw_interrupt_thread_switch PROC
EXPORT rt_hw_interrupt_thread_switch
BX lr
NOP
ENDP
IMPORT rt_hw_hard_fault_exception
@ -203,5 +202,6 @@ HardFault_Handler PROC
BX lr
ENDP
NOP
END
ALIGN 4
END

View File

@ -218,7 +218,6 @@ rt_hw_context_switch_to PROC
rt_hw_interrupt_thread_switch PROC
EXPORT rt_hw_interrupt_thread_switch
BX lr
NOP
ENDP
IMPORT rt_hw_hard_fault_exception
@ -235,4 +234,6 @@ HardFault_Handler PROC
BX lr
ENDP
ALIGN 4
END