Skip to content

Conversation

@wentongwu
Copy link
Contributor

@wentongwu wentongwu commented Oct 27, 2020

  1. push ssf to thread privileged stack to complete stack frame
  2. add more than 6 arguments syscall test case. The handle for more
    than 6 arguments case is slightly different between master branch and
    v1.14 branch, no mpu fault happen on master branch, but I still put the
    test case here.

Fixes: #29386.

@github-actions github-actions bot added area: ARM ARM (32-bit) Architecture area: Kernel area: Tests Issues related to a particular existing or missing test labels Oct 27, 2020
@wentongwu wentongwu requested a review from pabigot October 27, 2020 02:40
Pushes the seventh argument named ssf to thread's privileged
stack to follow below syscall prototype.

uintptr_t z_mrsh_xx(uintptr_t arg0, uintptr_t arg1, uintptr_t arg2,
		    uintptr_t arg3, uintptr_t arg4, void *more, void *ssf)

Fixes: zephyrproject-rtos#29386.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
@wentongwu wentongwu requested a review from jocelyn-li October 30, 2020 09:23
@wentongwu
Copy link
Contributor Author

@ioannisg ping...

Copy link
Member

@ioannisg ioannisg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wentongwu could you split-out commit b874b93682fc47d02c54e247684d8313917562ff, and send a separate PR along with a test case that reveals the problem?

Add more than 6 arguments syscall test case.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
@nashif nashif merged commit 6221439 into zephyrproject-rtos:master Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ARM ARM (32-bit) Architecture area: Kernel area: Tests Issues related to a particular existing or missing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unexpected behavior when doing syscall with 7 or more arguments

4 participants