commit | 7f028e2f6e38491eab71172961382346c2bc4096 | [log] [tgz] |
---|---|---|
author | Daniel Leung <daniel.leung@intel.com> | Wed Apr 02 09:38:38 2025 -0700 |
committer | Benjamin Cabé <kartben@gmail.com> | Thu Apr 17 00:57:19 2025 +0200 |
tree | c7056a0d39ae806183c4748220266172e4c46103 | |
parent | 482f9fbbfbc864c225b30c2e1da8f51610daf72b [diff] |
xtensa: userspace: align stack before calling syscall handler We stuff the 7th argument into stack by moving the stack pointer before calling syscall handler. The Xtensa ABI says stack must be 16-byte aligned. So instead of moving stack pointer 4 bytes, we move 16 bytes (assuming stack has been aligned so far). Signed-off-by: Daniel Leung <daniel.leung@intel.com>