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

riscv: g_current_regs is only used to determine if we are in irq #13561

Merged
merged 1 commit into from
Sep 20, 2024

Commits on Sep 20, 2024

  1. riscv: g_current_regs is only used to determine if we are in irq,

           with other functionalities removed.
    
    reason:
      by doing this we can reduce context switch time,
      When we exit from an interrupt handler, we directly use tcb->xcp.regs
    
    before
       text    data     bss     dec     hex filename
     138805     337   24256  163398   27e46 nuttx
    
    after
       text    data     bss     dec     hex filename
     138499     337   24240  163076   27d04 nuttx
    
     szie change -322
    Signed-off-by: hujun5 <[email protected]>
    hujun260 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    b794daa View commit details
    Browse the repository at this point in the history