[libcpu/arm]: add dsb and isb instructions in the end of rt_hw_context_switch_to (#5748)

This commit is contained in:
blta 2022-04-08 12:52:22 +08:00 committed by GitHub
parent 6b56515249
commit b1a9c4c4ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 72 additions and 0 deletions

View File

@ -180,6 +180,10 @@ rt_hw_context_switch_to:
/* enable interrupts at processor level */
CPSIE I
/* ensure PendSV exception taken place before subsequent operation */
DSB
ISB
/* never reach here! */
/* compatible with old version */

View File

@ -186,6 +186,10 @@ rt_hw_context_switch_to:
; enable interrupts at processor level
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
; compatible with old version

View File

@ -189,6 +189,10 @@ rt_hw_context_switch_to PROC
; enable interrupts at processor level
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
ENDP

View File

@ -181,6 +181,10 @@ rt_hw_context_switch_to:
/* enable interrupts at processor level */
CPSIE I
/* ensure PendSV exception taken place before subsequent operation */
DSB
ISB
/* never reach here! */
/* compatible with old version */

View File

@ -187,6 +187,10 @@ rt_hw_context_switch_to:
; enable interrupts at processor level
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
; compatible with old version

View File

@ -190,6 +190,10 @@ rt_hw_context_switch_to PROC
; enable interrupts at processor level
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
ENDP

View File

@ -162,6 +162,10 @@ rt_hw_context_switch_to:
CPSIE F
CPSIE I
/* ensure PendSV exception taken place before subsequent operation */
DSB
ISB
/* never reach here! */
/* compatible with old version */

View File

@ -161,6 +161,10 @@ rt_hw_context_switch_to:
CPSIE F
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
; compatible with old version

View File

@ -167,6 +167,10 @@ rt_hw_context_switch_to PROC
CPSIE F
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
ENDP

View File

@ -249,6 +249,10 @@ rt_hw_context_switch_to:
CPSIE F
CPSIE I
/* ensure PendSV exception taken place before subsequent operation */
DSB
ISB
/* never reach here! */
/* compatible with old version */

View File

@ -253,6 +253,10 @@ rt_hw_context_switch_to:
CPSIE F
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
; compatible with old version

View File

@ -254,6 +254,10 @@ rt_hw_context_switch_to PROC
CPSIE F
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
ENDP

View File

@ -208,6 +208,10 @@ rt_hw_context_switch_to:
CPSIE F
CPSIE I
/* ensure PendSV exception taken place before subsequent operation */
DSB
ISB
/* never reach here! */
/* compatible with old version */

View File

@ -208,6 +208,10 @@ rt_hw_context_switch_to:
CPSIE F
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
; compatible with old version

View File

@ -208,6 +208,10 @@ rt_hw_context_switch_to PROC
CPSIE F
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
ENDP

View File

@ -208,6 +208,10 @@ rt_hw_context_switch_to:
CPSIE F
CPSIE I
/* ensure PendSV exception taken place before subsequent operation */
DSB
ISB
/* never reach here! */
/* compatible with old version */

View File

@ -208,6 +208,10 @@ rt_hw_context_switch_to:
CPSIE F
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
; compatible with old version

View File

@ -208,6 +208,10 @@ rt_hw_context_switch_to PROC
CPSIE F
CPSIE I
; ensure PendSV exception taken place before subsequent operation
DSB
ISB
; never reach here!
ENDP