Core: Fix missing header error for v6m/v7m
1. The 'stddef.h' for arch source are missing due to header
including sequence change in previous patch. Add one more
including of 'stddef.h'.
2. The TFM_ASSERT is now moved into dedicated header, add it
into the source.
Change-Id: Ib5b73e76692336202ca4c406b795f65c74f7e4e8
Signed-off-by: Ken Liu <ken.liu@arm.com>
diff --git a/secure_fw/core/arch/include/tfm_arch.h b/secure_fw/core/arch/include/tfm_arch.h
index 8645963..534c327 100644
--- a/secure_fw/core/arch/include/tfm_arch.h
+++ b/secure_fw/core/arch/include/tfm_arch.h
@@ -9,6 +9,7 @@
/* This header file collects the architecture related operations. */
+#include <stddef.h>
#include <inttypes.h>
#include "tfm_hal_device_header.h"
#include "cmsis_compiler.h"
diff --git a/secure_fw/core/ipc/tfm_multi_core.c b/secure_fw/core/ipc/tfm_multi_core.c
index a8c9e58..5359ea1 100644
--- a/secure_fw/core/ipc/tfm_multi_core.c
+++ b/secure_fw/core/ipc/tfm_multi_core.c
@@ -11,6 +11,7 @@
#include "tfm_spe_mailbox.h"
#include "tfm_utils.h"
#include "log/tfm_log.h"
+#include "log/tfm_assert.h"
#define DEFAULT_NS_CLIENT_ID (-1)