|
@@ -7,8 +7,6 @@
|
|
|
#ifndef _ASM_X86_MACH_DEFAULT_APM_H
|
|
|
#define _ASM_X86_MACH_DEFAULT_APM_H
|
|
|
|
|
|
-#include <asm/nospec-branch.h>
|
|
|
-
|
|
|
#ifdef APM_ZERO_SEGS
|
|
|
# define APM_DO_ZERO_SEGS \
|
|
|
"pushl %%ds\n\t" \
|
|
@@ -34,7 +32,6 @@ static inline void apm_bios_call_asm(u32 func, u32 ebx_in, u32 ecx_in,
|
|
|
* N.B. We do NOT need a cld after the BIOS call
|
|
|
* because we always save and restore the flags.
|
|
|
*/
|
|
|
- firmware_restrict_branch_speculation_start();
|
|
|
__asm__ __volatile__(APM_DO_ZERO_SEGS
|
|
|
"pushl %%edi\n\t"
|
|
|
"pushl %%ebp\n\t"
|
|
@@ -47,7 +44,6 @@ static inline void apm_bios_call_asm(u32 func, u32 ebx_in, u32 ecx_in,
|
|
|
"=S" (*esi)
|
|
|
: "a" (func), "b" (ebx_in), "c" (ecx_in)
|
|
|
: "memory", "cc");
|
|
|
- firmware_restrict_branch_speculation_end();
|
|
|
}
|
|
|
|
|
|
static inline bool apm_bios_call_simple_asm(u32 func, u32 ebx_in,
|
|
@@ -60,7 +56,6 @@ static inline bool apm_bios_call_simple_asm(u32 func, u32 ebx_in,
|
|
|
* N.B. We do NOT need a cld after the BIOS call
|
|
|
* because we always save and restore the flags.
|
|
|
*/
|
|
|
- firmware_restrict_branch_speculation_start();
|
|
|
__asm__ __volatile__(APM_DO_ZERO_SEGS
|
|
|
"pushl %%edi\n\t"
|
|
|
"pushl %%ebp\n\t"
|
|
@@ -73,7 +68,6 @@ static inline bool apm_bios_call_simple_asm(u32 func, u32 ebx_in,
|
|
|
"=S" (si)
|
|
|
: "a" (func), "b" (ebx_in), "c" (ecx_in)
|
|
|
: "memory", "cc");
|
|
|
- firmware_restrict_branch_speculation_end();
|
|
|
return error;
|
|
|
}
|
|
|
|