AuditLog: Non Secure interface

-- Add the NS API interface and related SVC functions
   for the Audit Logging secure service.
-- Modify the example application to support the new
   NS interface for the Audit Logging secure service.

Change-Id: I6158742585db19b58e45704f13a4e5b1b4557d69
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
diff --git a/interface/src/tfm_log_api.c b/interface/src/tfm_log_api.c
new file mode 100644
index 0000000..de7a31b
--- /dev/null
+++ b/interface/src/tfm_log_api.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2018, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#include "tfm_log_defs.h"
+#include "tfm_ns_lock.h"
+
+enum tfm_log_err tfm_log_retrieve(uint32_t size,
+                                  uint8_t *buffer,
+                                  uint32_t *log_size)
+{
+    return tfm_ns_lock_svc_dispatch(SVC_TFM_LOG_RETRIEVE,
+                                    (uint32_t)size,
+                                    (uint32_t)buffer,
+                                    (uint32_t)log_size,
+                                    0);
+}
diff --git a/interface/src/tfm_log_svc_handler.c b/interface/src/tfm_log_svc_handler.c
new file mode 100644
index 0000000..0a67a78
--- /dev/null
+++ b/interface/src/tfm_log_svc_handler.c
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2018, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#include "tfm_ns_svc.h"
+#include "tfm_log_veneers.h"
+
+/* SVC function implementations */
+enum tfm_log_err tfm_log_svc_retrieve(uint32_t size,
+                                      uint8_t* buffer,
+                                      uint32_t *log_size)
+{
+    return tfm_log_veneer_retrieve(size, buffer, log_size);
+}