commit | 997a49ade95cbc3d78baa805d25deb7946acfa5f | [log] [tgz] |
---|---|---|
author | Piotr Zięcik <piotr.ziecik@nordicsemi.no> | Fri Jun 01 08:49:14 2018 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Jun 01 13:07:47 2018 -0400 |
tree | d9bd4d527c48be94468c2f85856770f8d182f37c | |
parent | 817e3cd9522e39642a2d809442fd269c4712844c [diff] |
arm: userspace: Do not overwrite r7 during syscall. The r7 register is used as a frame pointer on ARM Thumb. As result, it cannot be modified by the assembly code in functions using stack frame. This commit replaces r7 by r8, which is a general purpose register. Also it fixes #7704. Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>