Skip to content
Commit d149909b authored by Andrew Boie's avatar Andrew Boie Committed by Carles Cufí
Browse files

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: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 468efadd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment