From ae5452f24868b3682a308b9d56881c66c6ae016c Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Tue, 4 Feb 2025 10:58:23 +0100 Subject: [PATCH] llext: export symbols, needed by TDFB Modular TDFB needs additional exported symbols from Zephyr and SOF core. Signed-off-by: Guennadi Liakhovetski --- src/ipc/ipc-common.c | 1 + src/math/sqrt_int16.c | 2 ++ src/math/trig.c | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/ipc/ipc-common.c b/src/ipc/ipc-common.c index 6557fdd50b59..244a218d5be8 100644 --- a/src/ipc/ipc-common.c +++ b/src/ipc/ipc-common.c @@ -252,6 +252,7 @@ void ipc_msg_send(struct ipc_msg *msg, void *data, bool high_priority) k_spin_unlock(&ipc->lock, key); } +EXPORT_SYMBOL(ipc_msg_send); #ifdef __ZEPHYR__ static void ipc_work_handler(struct k_work *work) diff --git a/src/math/sqrt_int16.c b/src/math/sqrt_int16.c index 0d62e8145187..9068717d638d 100644 --- a/src/math/sqrt_int16.c +++ b/src/math/sqrt_int16.c @@ -6,6 +6,7 @@ // // +#include #include #define SQRT_WRAP_SCHAR_BITS 0xFF @@ -145,3 +146,4 @@ uint16_t sqrt_int16(uint16_t u) return y; } +EXPORT_SYMBOL(sqrt_int16); diff --git a/src/math/trig.c b/src/math/trig.c index ee5014cf91d2..32613d393034 100644 --- a/src/math/trig.c +++ b/src/math/trig.c @@ -7,6 +7,7 @@ // Keyon Jie // Shriram Shastry +#include #include #include #include @@ -99,6 +100,7 @@ void cordic_approx(int32_t th_rad_fxp, int32_t a_idx, int32_t *sign, int32_t *b_ /* Q2.30 format -sine, cosine*/ *th_cdc_fxp = th_rad_fxp; } +EXPORT_SYMBOL(cordic_approx); /** * CORDIC-based approximation for inverse cosine