-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: syscall SYS_switch_context and SYS_restore_context use 0 para #14981
Conversation
[Experimental Bot, please feedback here] Yes, this PR appears to meet the basic NuttX requirements, although more detail would strengthen it. Here's a breakdown of why and where it could be improved: Strengths:
Weaknesses & Areas for Improvement:
Example of Improved Testing Section:
$ size nuttx Example: Show some timing or profiling data related to context switching if applicable.
$ size nuttx Example: Show corresponding data after the change. Demonstrate improvement.
|
reason: simplify context switch sys_call0(SYS_switch_context) sys_call0(SYS_restore_context) size nuttx before text data bss dec hex filename 148021 921 26944 175886 2af0e nuttx after text data bss dec hex filename 147995 921 26928 175844 2aee4 nuttx size reduce -42 Signed-off-by: hujun5 <[email protected]>
Note: Please adhere to Contributing Guidelines.
Summary
riscv: syscall SYS_switch_context and SYS_restore_context use 0 para
reason:
simplify context switch
sys_call0(SYS_switch_context)
sys_call0(SYS_restore_context)
size nuttx
before
text data bss dec hex filename
148021 921 26944 175886 2af0e nuttx
after
text data bss dec hex filename
147995 921 26928 175844 2aee4 nuttx
size reduce -42
Impact
risc-v
Testing
ci ostest
rv-virt:smp