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

improve RISC-V multi core boot #132

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Commits on Feb 15, 2024

  1. elfloader/risc-v: clarify parameters and types

    - Use word_t to adapt to architecture
    - sbi_hart_start() takes a custom argument.
    - hart ID and custom argument is passed when starting a secondary hart.
    
    Signed-off-by: Axel Heider <axelheider@gmx.de>
    axel-h committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    295458b View commit details
    Browse the repository at this point in the history
  2. elfloader/risc-v: no need to use t0

    This also makes the comment about a1 correct again.
    
    Signed-off-by: Axel Heider <axelheider@gmx.de>
    axel-h committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    1b7be5b View commit details
    Browse the repository at this point in the history
  3. elfloader/risc-v: unify multicore stacks

    - declare stack fully in C code
    - use one array that holds all stack
    - use CONFIG_KERNEL_STACK_BITS for size
    
    Signed-off-by: Axel Heider <axelheider@gmx.de>
    axel-h committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    740bc9b View commit details
    Browse the repository at this point in the history
  4. elfloader/risc-v: improve comments

    Signed-off-by: Axel Heider <axelheider@gmx.de>
    axel-h committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    003dd16 View commit details
    Browse the repository at this point in the history
  5. elfloader/risc-v: Improve code readability

    Reorder code blocks and improve comments.
    
    Signed-off-by: Axel Heider <axelheider@gmx.de>
    axel-h committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    aae131a View commit details
    Browse the repository at this point in the history
  6. elfloader/risc-v: add multi core helper functions

    Use wrapper function to Improve code readability.
    
    Signed-off-by: Axel Heider <axelheider@gmx.de>
    axel-h committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    3344a19 View commit details
    Browse the repository at this point in the history