1 int cpu_has(unsigned short bit)
3 asm goto ("1: jmp %l[t_no]\n" "2:\n" ".section .altinstructions,\"a\"\n"
4 ".balign 4\n" ".long 1b\n" ".long 0\n" ".word %P0\n" ".byte 2b - 1b\n" ".byte 0\n"
5 ".previous\n"::"i" (bit)::t_no);
11 unsigned int x86_capability[10];
13 extern struct cpuinfo_x86 boot_cpu_data;
14 struct i387_fxsave_struct {
21 struct i387_fxsave_struct fxsave;
22 struct xsave_struct xsave;
26 union thread_xstate *state;
28 __attribute__ ((always_inline)) __attribute__ ((pure))
34 __attribute__ ((always_inline)) __attribute__ ((pure))
39 __attribute__ ((always_inline))
40 void fpu_save_init(struct fpu *fpu)
42 if (__builtin_constant_p(use_xsave())? use_xsave() : use_xsave()) {
46 } else if (use_fxsr()) {
48 if (__builtin_constant_p
49 ((((__builtin_constant_p(fpu->state->fxsave.swd & 1) ?
50 ! !(fpu->state->fxsave.swd & 1) : ( {
61 ! !(((__builtin_constant_p(fpu->state->fxsave.swd & 1) ?
62 ! !(fpu->state->fxsave.swd & 1) : ( {
76 ! !(((__builtin_constant_p(fpu->state->fxsave.swd & 1)
77 ? ! !(fpu->state->fxsave.swd & 1) : ( {
90 asm volatile ("fnclex");
93 void aes_decrypt(void)
96 crypto_aes_decrypt_x86();
101 void (*funcptr)(void) = aes_decrypt;
105 if (crypto_register_alg())
106 crypto_unregister_alg(0);