Skip to content

Commit 8a1c814

Browse files
committed
lib_manager: Public lib_manager_get_instance_bss_address function
Remove static keyword from lib_manager_get_instance_bss_address function and add function declaration. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
1 parent c158481 commit 8a1c814

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/include/sof/lib_manager.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,18 @@ struct comp_ipc_config;
199199
uintptr_t lib_manager_allocate_module(const struct comp_ipc_config *ipc_config,
200200
const void *ipc_specific_config);
201201

202+
/*
203+
* \brief Get address and size of the bss section for given module instance
204+
*
205+
* param[in] instance_id - instance id
206+
* param[in] mod - module manifest
207+
* param[out] va_addr - address of the bss section
208+
* param[out] size - size of the bss section
209+
*/
210+
void lib_manager_get_instance_bss_address(uint32_t instance_id,
211+
const struct sof_man_module *mod,
212+
void __sparse_cache **va_addr, size_t *size);
213+
202214
/*
203215
* \brief Free module
204216
*

src/library_manager/lib_manager.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ static int lib_manager_unload_libcode_modules(const uint32_t module_id)
273273
}
274274
#endif /* CONFIG_LIBCODE_MODULE_SUPPORT */
275275

276-
static void lib_manager_get_instance_bss_address(uint32_t instance_id,
277-
const struct sof_man_module *mod,
278-
void __sparse_cache **va_addr, size_t *size)
276+
void lib_manager_get_instance_bss_address(uint32_t instance_id,
277+
const struct sof_man_module *mod,
278+
void __sparse_cache **va_addr, size_t *size)
279279
{
280280
*size = mod->segment[SOF_MAN_SEGMENT_BSS].flags.r.length / mod->instance_max_count *
281281
PAGE_SZ;

0 commit comments

Comments
 (0)