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

kernel: userspace: aligned memory allocation for dynamic objects #30762

Merged

Commits on Jan 12, 2021

  1. kernel: mempool: add z_thread_aligned_alloc

    This adds a new z_thread_aligned_alloc() to do memory allocation
    with required alignment.
    
    Signed-off-by: Daniel Leung <daniel.leung@intel.com>
    dcpleung committed Jan 12, 2021
    Configuration menu
    Copy the full SHA
    9d72b74 View commit details
    Browse the repository at this point in the history
  2. kernel: userspace: aligned memory allocation for dynamic objects

    This allows allocating dynamic kernel objects with memory alignment
    requirements. The first candidate is for thread objects where,
    on some architectures, it must be aligned for saving/restoring
    registers.
    
    Signed-off-by: Daniel Leung <daniel.leung@intel.com>
    dcpleung committed Jan 12, 2021
    Configuration menu
    Copy the full SHA
    36d9a71 View commit details
    Browse the repository at this point in the history
  3. x86: define dynamic thread object alignment

    x86 and x86_64 require certain alignment in the k_thread struct
    since the buffer to save/restore FPU/SSE registers requires
    strict alignment.
    
    Fixes zephyrproject-rtos#29589
    Fixes zephyrproject-rtos#29629
    
    Signed-off-by: Daniel Leung <daniel.leung@intel.com>
    dcpleung committed Jan 12, 2021
    Configuration menu
    Copy the full SHA
    950bf7e View commit details
    Browse the repository at this point in the history