Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/library_manager/llext_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,15 @@ static int llext_manager_add_mod_domain(struct lib_manager_module *mctx, struct

/*
* Add to domain on first load: for "normal" modules use_count == 1,
* for dependencies use_count == 2 and n_dependent == 1
* for dependencies use_count == 2 and n_dependent == 1.
* This does not apply to DP modules, since they are, for now,
* all in their own memory domains.
*
* NOTE: This approach will make it impossible to have one module
* to have both LL and DP instances within one configuration.
* This will be fixed in future.
Comment on lines +850 to +852
*/
if (ext->use_count > 1 && mctx->n_dependent != 1)
if (!mctx->domain_dp && ext->use_count > 1 && mctx->n_dependent != 1)
return 0;

int ret = llext_manager_add_partition(domain, va_base_text, text_size,
Expand Down
Loading