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/ns_interface/os_wrapper/delay.h b/ns_interface/os_wrapper/delay.h
new file mode 100644
index 0000000..9eaf95f
--- /dev/null
+++ b/ns_interface/os_wrapper/delay.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2022, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef __OS_WRAPPER_DELAY_H__
+#define __OS_WRAPPER_DELAY_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "common.h"
+
+/**
+ * \brief Wait until an absolute time (specified in kernel ticks) is reached.
+ *
+ * \return \ref OS_WRAPPER_SUCCESS if the time delay is executed, or
+ * \ref OS_WRAPPER_ERROR in case of error
+ */
+int32_t os_wrapper_delay_until(uint32_t ticks);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __OS_WRAPPER_DELAY_H__ */