commit | d149909b037a5aab342123be53df1688bbe41cac | [log] [tgz] |
---|---|---|
author | Andrew Boie <andrew.p.boie@intel.com> | Tue May 12 16:23:15 2020 -0700 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed May 13 21:23:52 2020 +0200 |
tree | d6e2b4aba399b25922f02039d5f1341b83129750 | |
parent | 468efadd47189d0a6e01aa50b080e76bbe61091d [diff] |
x86: properly align initial dummy thread x86-32 thread objects require special alignment since they contain a buffer that is passed to fxsave/fxrstor instructions. This fell over if the dummy thread is created in a stack frame. Implement a custom swap to main for x86 which still uses a dummy thread, but in an unused part of the interrupt stack with proper alignment. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>