File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -496,15 +496,21 @@ static void __init setup_init_fpu_buf(void)
496
496
497
497
setup_xstate_features ();
498
498
499
+ if (cpu_has_xsaves ) {
500
+ init_xstate_buf -> xsave_hdr .xcomp_bv =
501
+ (u64 )1 << 63 | pcntxt_mask ;
502
+ init_xstate_buf -> xsave_hdr .xstate_bv = pcntxt_mask ;
503
+ }
504
+
499
505
/*
500
506
* Init all the features state with header_bv being 0x0
501
507
*/
502
- xrstor_state (init_xstate_buf , -1 );
508
+ xrstor_state_booting (init_xstate_buf , -1 );
503
509
/*
504
510
* Dump the init state again. This is to identify the init state
505
511
* of any feature which is not represented by all zero's.
506
512
*/
507
- xsave_state (init_xstate_buf , -1 );
513
+ xsave_state_booting (init_xstate_buf , -1 );
508
514
}
509
515
510
516
static enum { AUTO , ENABLE , DISABLE } eagerfpu = AUTO ;
You can’t perform that action at this time.
0 commit comments