mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-07-17 04:07:18 +00:00
arm-bsp/optee: add log handler
Add log handler for SP sending logs over ffa to spmc. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
committed by
Jon Mason
parent
13199c55c0
commit
c3ada285de
+33
@@ -0,0 +1,33 @@
|
|||||||
|
Upstream-Status: Pending [Not submitted to upstream yet]
|
||||||
|
Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
|
||||||
|
|
||||||
|
From b3fde6c2e1a950214f760ab9f194f3a6572292a8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Balint Dobszay <balint.dobszay@arm.com>
|
||||||
|
Date: Fri, 15 Jul 2022 13:45:54 +0200
|
||||||
|
Subject: [PATCH] Handle logging syscall
|
||||||
|
|
||||||
|
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
|
||||||
|
Change-Id: Ib8151cc9c66aea8bcc8fe8b1ecdc3f9f9c5f14e4
|
||||||
|
|
||||||
|
%% original patch: 0004-Handle-logging-syscall.patch
|
||||||
|
|
||||||
|
diff --git a/core/arch/arm/kernel/spmc_sp_handler.c b/core/arch/arm/kernel/spmc_sp_handler.c
|
||||||
|
index e0fa0aa6..c7a45387 100644
|
||||||
|
--- a/core/arch/arm/kernel/spmc_sp_handler.c
|
||||||
|
+++ b/core/arch/arm/kernel/spmc_sp_handler.c
|
||||||
|
@@ -1004,6 +1004,12 @@ void spmc_sp_msg_handler(struct thread_smc_args *args,
|
||||||
|
ffa_mem_reclaim(args, caller_sp);
|
||||||
|
sp_enter(args, caller_sp);
|
||||||
|
break;
|
||||||
|
+ case 0xdeadbeef:
|
||||||
|
+ ts_push_current_session(&caller_sp->ts_sess);
|
||||||
|
+ IMSG("%s", (char *)args->a1);
|
||||||
|
+ ts_pop_current_session();
|
||||||
|
+ sp_enter(args, caller_sp);
|
||||||
|
+ break;
|
||||||
|
default:
|
||||||
|
EMSG("Unhandled FFA function ID %#"PRIx32,
|
||||||
|
(uint32_t)args->a0);
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
||||||
@@ -5,6 +5,11 @@ SRC_URI:remove = " \
|
|||||||
file://0008-no-warn-rwx-segments.patch \
|
file://0008-no-warn-rwx-segments.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
FILESEXTRAPATHS:prepend := "${THISDIR}/files/optee-os/corstone1000:"
|
||||||
|
SRC_URI:append = " \
|
||||||
|
file://0004-Handle-logging-syscall.patch \
|
||||||
|
"
|
||||||
|
|
||||||
COMPATIBLE_MACHINE = "corstone1000"
|
COMPATIBLE_MACHINE = "corstone1000"
|
||||||
|
|
||||||
OPTEEMACHINE = "corstone1000"
|
OPTEEMACHINE = "corstone1000"
|
||||||
@@ -15,3 +20,5 @@ EXTRA_OEMAKE += " CFG_TEE_CORE_LOG_LEVEL=4"
|
|||||||
EXTRA_OEMAKE += " CFG_TEE_BENCHMARK=n"
|
EXTRA_OEMAKE += " CFG_TEE_BENCHMARK=n"
|
||||||
|
|
||||||
EXTRA_OEMAKE += " CFG_CORE_SEL1_SPMC=y CFG_CORE_FFA=y"
|
EXTRA_OEMAKE += " CFG_CORE_SEL1_SPMC=y CFG_CORE_FFA=y"
|
||||||
|
|
||||||
|
EXTRA_OEMAKE += " CFG_WITH_SP=y"
|
||||||
|
|||||||
Reference in New Issue
Block a user