Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llext: manager: use k_ssize_t instead of ssize_t #47

Open
wants to merge 9 commits into
base: zephyr
Choose a base branch
from

Commits on Jun 4, 2024

  1. app: zephyr still requires cmake version 3.20.0

    Set min. cmake version required to what zephyr uses.
    
    Signed-off-by: Anas Nashif <anas.nashif@intel.com>
    nashif committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    e48b45c View commit details
    Browse the repository at this point in the history
  2. zephyr: change z_arch_esf_t to struct arch_esf

    `z_arch_esf_t` has been deprecated, use `struct arch_esf`
    instead.
    
    Signed-off-by: Yong Cong Sin <ycsin@meta.com>
    ycsin authored and nashif committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    35467d6 View commit details
    Browse the repository at this point in the history
  3. zephyr: arch_sched_ipi() -> arch_sched_broadcast_ipi()

    Renames arch_sched_ipi() to arch_sched_broadcast_ipi() to
    reflect recent changes from the IPI optimization work done
    in Zephyr.
    
    Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
    peter-mitsis authored and nashif committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    1e4702f View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

  1. llext: (cosmetic) group headers

    Re-group headers more logically in eq_iir.c and mixin_mixout.c.
    
    Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
    lyakh authored and nashif committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    23a5452 View commit details
    Browse the repository at this point in the history
  2. llext: update memory access flags when mapping

    When dynamically mapping memory, we need to update access flags
    according to the type of the mapping.
    
    Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
    lyakh authored and nashif committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    4d1bd4d View commit details
    Browse the repository at this point in the history
  3. llext: use the first module for ELF information

    When an LLEXT module contains multiple Module Adapter instances,
    their manifests are stored in an array in the .module section. Those
    array entries contain per-instance information like module entry
    points, names, UUIDs, but ELF information is common for all
    instances. Store it in the first array entry to avoid confusion.
    
    Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
    lyakh authored and nashif committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    8a7bacb View commit details
    Browse the repository at this point in the history
  4. llext: split read-only and writable data properly

    We map memory pages for loaded modules dynamically and we're able to
    set memory flags for write access or for code execution. This commit
    takes advantage of the recently added section grouping and maps the
    three module parts separately: executable code, read-only data and
    writable data, including zero-initialised .bss. This also cleans up
    references, pointing into module storage in IMR instead of the mapped
    addresses.
    
    Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
    lyakh authored and nashif committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    90f58ca View commit details
    Browse the repository at this point in the history
  5. llext: add support for .bss directly adjacent to .data

    Zephyr places .bss into a separate section element, still if it's
    immediately adjacent to writable data we can merge and allocate them
    together.
    
    Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
    lyakh authored and nashif committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    3f1716b View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. llext: manager: use k_ssize_t instead of ssize_t

    This change accompanies a similar Zephyr change where we
    create explicit k-types to avoid using POSIX types below the
    line in where the POSIX API sits in our stack, thus avoiding
    a dependency cycle.
    
    Additional types we should avoid using (as well as the
    <sys/types.h> header itself) are listed on the opengroup
    website (search for "sys/types.h").
    
    Signed-off-by: Christopher Friedt <cfriedt@tenstorrent.com>
    cfriedt committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    b577e7f View commit details
    Browse the repository at this point in the history