commit | 63ad74f833cf38579f1a91e8e54d53d0d6602875 | [log] [tgz] |
---|---|---|
author | Andy Ross <andrew.j.ross@intel.com> | Sun Dec 17 09:30:39 2017 -0800 |
committer | Anas Nashif <nashif@linux.intel.com> | Fri Feb 16 10:44:29 2018 -0500 |
tree | 0ae01d51b22aaedbc8f6e4a04e58c1704c9489de | |
parent | 2c1449bc812ad55511b8e9464b8ab7fb2bcdee7d [diff] |
xtensa: Fix thread entry point The stack initilaization was calling the user-provided entry function directly, which works fine until that function returns, at which point it will try to unspill A0-A3 from the 16 bytes above the allocated stack and then "return" to a NULL pointer. The kernel provides a _thread_entry() function that does cleanup properly, so use that. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>