提交 2331ebdc 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #811 from aozima/update_cortex-m_port

[libcpu] Update cortex m port
...@@ -28,8 +28,8 @@ do not initialize { section .noinit }; ...@@ -28,8 +28,8 @@ do not initialize { section .noinit };
keep { section FSymTab }; keep { section FSymTab };
keep { section VSymTab }; keep { section VSymTab };
keep { section .rti_fn* };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in ROM_region { readonly, block RTT_INIT_FUNC }; place in ROM_region { readonly, block RTT_INIT_FUNC };
place in RAM_region { readwrite, place in RAM_region { readwrite, block CSTACK, last block HEAP};
block CSTACK, block HEAP };
\ No newline at end of file
...@@ -181,7 +181,9 @@ rt_hw_context_switch_to: ...@@ -181,7 +181,9 @@ rt_hw_context_switch_to:
NOP NOP
MSR MSP, R0 MSR MSP, R0
CPSIE I /* enable interrupts at processor level */ /* enable interrupts at processor level */
CPSIE F
CPSIE I
/* never reach here! */ /* never reach here! */
......
...@@ -188,6 +188,7 @@ rt_hw_context_switch_to: ...@@ -188,6 +188,7 @@ rt_hw_context_switch_to:
MSR msp, r0 MSR msp, r0
; enable interrupts at processor level ; enable interrupts at processor level
CPSIE F
CPSIE I CPSIE I
; never reach here! ; never reach here!
......
...@@ -191,6 +191,7 @@ rt_hw_context_switch_to PROC ...@@ -191,6 +191,7 @@ rt_hw_context_switch_to PROC
MSR msp, r0 MSR msp, r0
; enable interrupts at processor level ; enable interrupts at processor level
CPSIE F
CPSIE I CPSIE I
; never reach here! ; never reach here!
......
...@@ -162,7 +162,9 @@ rt_hw_context_switch_to: ...@@ -162,7 +162,9 @@ rt_hw_context_switch_to:
NOP NOP
MSR msp, r0 MSR msp, r0
CPSIE I /* enable interrupts at processor level */ /* enable interrupts at processor level */
CPSIE F
CPSIE I
/* never reach here! */ /* never reach here! */
......
...@@ -161,7 +161,9 @@ rt_hw_context_switch_to: ...@@ -161,7 +161,9 @@ rt_hw_context_switch_to:
NOP NOP
MSR msp, r0 MSR msp, r0
CPSIE I ; enable interrupts at processor level ; enable interrupts at processor level
CPSIE F
CPSIE I
; never reach here! ; never reach here!
......
...@@ -168,6 +168,7 @@ rt_hw_context_switch_to PROC ...@@ -168,6 +168,7 @@ rt_hw_context_switch_to PROC
MSR msp, r0 MSR msp, r0
; enable interrupts at processor level ; enable interrupts at processor level
CPSIE F
CPSIE I CPSIE I
; never reach here! ; never reach here!
......
...@@ -203,7 +203,9 @@ rt_hw_context_switch_to: ...@@ -203,7 +203,9 @@ rt_hw_context_switch_to:
NOP NOP
MSR msp, r0 MSR msp, r0
CPSIE I /* enable interrupts at processor level */ /* enable interrupts at processor level */
CPSIE F
CPSIE I
/* never reach here! */ /* never reach here! */
......
...@@ -207,7 +207,9 @@ rt_hw_context_switch_to: ...@@ -207,7 +207,9 @@ rt_hw_context_switch_to:
NOP NOP
MSR msp, r0 MSR msp, r0
CPSIE I ; enable interrupts at processor level ; enable interrupts at processor level
CPSIE F
CPSIE I
; never reach here! ; never reach here!
......
...@@ -208,6 +208,7 @@ rt_hw_context_switch_to PROC ...@@ -208,6 +208,7 @@ rt_hw_context_switch_to PROC
MSR msp, r0 MSR msp, r0
; enable interrupts at processor level ; enable interrupts at processor level
CPSIE F
CPSIE I CPSIE I
; never reach here! ; never reach here!
......
...@@ -203,7 +203,9 @@ rt_hw_context_switch_to: ...@@ -203,7 +203,9 @@ rt_hw_context_switch_to:
NOP NOP
MSR msp, r0 MSR msp, r0
CPSIE I /* enable interrupts at processor level */ /* enable interrupts at processor level */
CPSIE F
CPSIE I
/* never reach here! */ /* never reach here! */
......
...@@ -207,7 +207,9 @@ rt_hw_context_switch_to: ...@@ -207,7 +207,9 @@ rt_hw_context_switch_to:
NOP NOP
MSR msp, r0 MSR msp, r0
CPSIE I ; enable interrupts at processor level ; enable interrupts at processor level
CPSIE F
CPSIE I
; never reach here! ; never reach here!
......
...@@ -208,6 +208,7 @@ rt_hw_context_switch_to PROC ...@@ -208,6 +208,7 @@ rt_hw_context_switch_to PROC
MSR msp, r0 MSR msp, r0
; enable interrupts at processor level ; enable interrupts at processor level
CPSIE F
CPSIE I CPSIE I
; never reach here! ; never reach here!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册