Core: Split memory access check from tfm_secure_api.c/.h

Diverse topologies require different memory access check
implementations. Split single Armv8-M memory access functions and
API definitions from common TF-M secure operations.
Thus different topologies can continue sharing the same TF-M secure
operations in tfm_secure_api.c and implement own memory access
functionalities.

Change-Id: I789e712a5d0e3b4127e6710846f2a2b0f612dba7
Signed-off-by: David Hu <david.hu@arm.com>
diff --git a/secure_fw/spm/spm_api_ipc.c b/secure_fw/spm/spm_api_ipc.c
index 24fd179..b05ec81 100644
--- a/secure_fw/spm/spm_api_ipc.c
+++ b/secure_fw/spm/spm_api_ipc.c
@@ -17,6 +17,7 @@
 #include "tfm_spm_hal.h"
 #include "spm_api.h"
 #include "spm_db.h"
+#include "tfm_core_mem_check.h"
 #include "tfm_internal_defines.h"
 #include "tfm_wait.h"
 #include "tfm_message_queue.h"