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

[backport v1.14] push ssf to thread privileged stack to complete stack frame #29536

Merged
merged 2 commits into from
Nov 16, 2020

Conversation

wentongwu
Copy link
Contributor

  1. push ssf to thread privileged stack to complete stack frame
  2. add more than 6 arguments syscall test case

Fixes: #29386.

@wentongwu wentongwu changed the title Syscall push ssf to thread privileged stack to complete stack frame Oct 26, 2020
All system call handlers have the same prototype:
u32_t _handler_APINAME(u32_t arg1, u32_t arg2, u32_t arg3,
		       u32_t arg4, u32_t arg5, u32_t arg6, void *ssf);

This commit pushes the seventh argument named ssf to thread's privileged
stack to avoid mis-understanding the stack layout with compiler.

Fixes: zephyrproject-rtos#29386.

Signed-off-by: Wentong Wu <[email protected]>
Add more than 6 arguments syscall test case.

Signed-off-by: Wentong Wu <[email protected]>
@wentongwu wentongwu requested a review from pabigot October 27, 2020 02:39
@pabigot pabigot changed the title push ssf to thread privileged stack to complete stack frame [backport v1.14] push ssf to thread privileged stack to complete stack frame Oct 27, 2020
@nashif nashif added Backport Backport PR and backport failure issues and removed backport v1.14-branch labels Oct 27, 2020
@nashif nashif added this to the v1.14.3 milestone Oct 27, 2020
@wentongwu wentongwu requested a review from jocelyn-li October 30, 2020 09:22
@wentongwu
Copy link
Contributor Author

@andrewboie @ioannisg ping...

@wentongwu
Copy link
Contributor Author

@ioannisg please also review this PR, thanks.

@nashif nashif merged commit 3de7d21 into zephyrproject-rtos:v1.14-branch Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants