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

DO NOT MERGE #119

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

DO NOT MERGE #119

wants to merge 2 commits into from

Commits on Mar 29, 2022

  1. RISC-V: Implement option to run NuttX in supervisor mode (S-mode)

    - Add config "ARCH_USE_S_MODE" which controls whether the kernel
      runs in M-mode or S-mode
    - Add more MSTATUS and most of the SSTATUS register definitions
    - Add more MIP flags for interrupt delegation
    - Add handling of interrupts from S-mode
    - Add handling of FPU from S-mode
    - Add new context handling functions that are not dependent on the trap
      handlers / ecall
    
    NOTE: S-mode requires a companion SW (SBI) which is not yet implemented,
          thus S-mode is not usable as is, yet.
    pussuw committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    645147a View commit details
    Browse the repository at this point in the history
  2. RISC-V: Implement skeleton for a per CPU structure

    It might be useful to store things in memory per CPU. The tricky part
    is that all CPUs run the same code and see the same memory, so some
    kind of centralized access is required.
    
    For now, the structure contains the hart id.
    
    Access to the structure elements is provided via sscratch, which is
    unique for every hart!
    pussuw committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    051e494 View commit details
    Browse the repository at this point in the history