|
@@ -394,7 +394,8 @@ static void __init setup_xstate_init(void)
|
|
* Setup init_xstate_buf to represent the init state of
|
|
* Setup init_xstate_buf to represent the init state of
|
|
* all the features managed by the xsave
|
|
* all the features managed by the xsave
|
|
*/
|
|
*/
|
|
- init_xstate_buf = alloc_bootmem(xstate_size);
|
|
|
|
|
|
+ init_xstate_buf = alloc_bootmem_align(xstate_size,
|
|
|
|
+ __alignof__(struct xsave_struct));
|
|
init_xstate_buf->i387.mxcsr = MXCSR_DEFAULT;
|
|
init_xstate_buf->i387.mxcsr = MXCSR_DEFAULT;
|
|
|
|
|
|
clts();
|
|
clts();
|