Skip to content

Commit 754ebd6

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 bd6abf0 commit 754ebd6

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
@@ -186,6 +186,18 @@ int lib_manager_register_module(const uint32_t component_id);
186186
*/
187187
const struct sof_man_fw_desc *lib_manager_get_library_manifest(int module_id);
188188

189+
/*
190+
* \brief Get address and size of the bss section for given module instance
191+
*
192+
* param[in] instance_id - instance id
193+
* param[in] mod - module manifest
194+
* param[out] va_addr - address of the bss section
195+
* param[out] size - size of the bss section
196+
*/
197+
void lib_manager_get_instance_bss_address(uint32_t instance_id,
198+
const struct sof_man_module *mod,
199+
void __sparse_cache **va_addr, size_t *size);
200+
189201
/*
190202
* \brief Free module
191203
*

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)