Test: Add FP interrupt test case
Add test cases for interrupt:
1. Enable secure timer interrupt in non-secure thread, check FP
context protection after secure interrupt return to non-secure
thread.
2. Enable non-secure timer interrupt in secure thread, check FP
context protection after non-secure interrupt entry.
Signed-off-by: Feder Liang <Feder.Liang@arm.com>
Change-Id: I368a8ee8790f18e00a2b86644a1844e9a903aab0
diff --git a/app/os_wrapper_cmsis_rtos_v2.c b/app/os_wrapper_cmsis_rtos_v2.c
index ec785f2..1e188ab 100755
--- a/app/os_wrapper_cmsis_rtos_v2.c
+++ b/app/os_wrapper_cmsis_rtos_v2.c
@@ -8,6 +8,7 @@
#include "os_wrapper/thread.h"
#include "os_wrapper/mutex.h"
#include "os_wrapper/semaphore.h"
+#include "os_wrapper/delay.h"
#include "cmsis_os2.h"
@@ -260,3 +261,15 @@
return OS_WRAPPER_ERROR;
}
+
+int32_t os_wrapper_delay_until(uint32_t ticks)
+{
+ osStatus_t status;
+
+ status = osDelayUntil(ticks);
+ if (status == osOK) {
+ return OS_WRAPPER_SUCCESS;
+ }
+
+ return OS_WRAPPER_ERROR;
+}