@@ -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 */
@@ -186,6 +186,10 @@ rt_hw_context_switch_to:
; enable interrupts at processor level
+ ; ensure PendSV exception taken place before subsequent operation
; never reach here!
; compatible with old version
@@ -189,6 +189,10 @@ rt_hw_context_switch_to PROC
ENDP
@@ -181,6 +181,10 @@ rt_hw_context_switch_to:
@@ -187,6 +187,10 @@ rt_hw_context_switch_to:
@@ -190,6 +190,10 @@ rt_hw_context_switch_to PROC
@@ -162,6 +162,10 @@ rt_hw_context_switch_to:
CPSIE F
@@ -161,6 +161,10 @@ rt_hw_context_switch_to:
@@ -167,6 +167,10 @@ rt_hw_context_switch_to PROC
@@ -249,6 +249,10 @@ rt_hw_context_switch_to:
@@ -253,6 +253,10 @@ rt_hw_context_switch_to:
@@ -254,6 +254,10 @@ rt_hw_context_switch_to PROC
@@ -208,6 +208,10 @@ rt_hw_context_switch_to:
@@ -208,6 +208,10 @@ rt_hw_context_switch_to PROC