aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/messaging/ffa/libsp/include/ffa_internal_api.h10
-rw-r--r--components/messaging/ffa/libsp/include/sp_api.h10
2 files changed, 18 insertions, 2 deletions
diff --git a/components/messaging/ffa/libsp/include/ffa_internal_api.h b/components/messaging/ffa/libsp/include/ffa_internal_api.h
index bfd4415..295c0b1 100644
--- a/components/messaging/ffa/libsp/include/ffa_internal_api.h
+++ b/components/messaging/ffa/libsp/include/ffa_internal_api.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: BSD-3-Clause */
/*
- * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
*/
#ifndef LIBSP_INCLUDE_FFA_INTERNAL_API_H_
@@ -14,6 +14,10 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef ARM32
struct ffa_params {
uint32_t a0; /**< Function ID */
@@ -50,4 +54,8 @@ void ffa_svc(uint64_t a0, uint64_t a1, uint64_t a2, uint64_t a3, uint64_t a4,
uint64_t a5, uint64_t a6, uint64_t a7, struct ffa_params *result);
#endif /* ARM64 */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIBSP_INCLUDE_FFA_INTERNAL_API_H_ */
diff --git a/components/messaging/ffa/libsp/include/sp_api.h b/components/messaging/ffa/libsp/include/sp_api.h
index e188560..3c432bb 100644
--- a/components/messaging/ffa/libsp/include/sp_api.h
+++ b/components/messaging/ffa/libsp/include/sp_api.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: BSD-3-Clause */
/*
- * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
*/
#ifndef LIBSP_INCLUDE_SP_API_H_
@@ -10,6 +10,10 @@
#include "compiler.h" // for __noreturn
#include "ffa_api.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Interface for the SP implementation
*/
@@ -30,4 +34,8 @@ void sp_interrupt_handler(uint32_t interrupt_id);
*/
void __noreturn sp_main(struct ffa_init_info *init_info);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIBSP_INCLUDE_SP_API_H_ */