blob: 794eb2129bc6b97f2e254a4d4871d7ea6747a2a5 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
H. Peter Anvin1965aae2008-10-22 22:26:29 -07002#ifndef _ASM_X86_BUGS_H
3#define _ASM_X86_BUGS_H
Thomas Gleixner003a46c2007-10-15 13:57:47 +02004
Dave Hansen0f6ff2b2016-05-12 15:04:00 -07005#include <asm/processor.h>
6
Ingo Molnar8550eb92008-01-30 13:34:10 +01007extern void check_bugs(void);
Thomas Petazzoni8d02c212008-08-05 11:45:19 +02008
Dave Hansen0f6ff2b2016-05-12 15:04:00 -07009#if defined(CONFIG_CPU_SUP_INTEL)
10void check_mpx_erratum(struct cpuinfo_x86 *c);
11#else
12static inline void check_mpx_erratum(struct cpuinfo_x86 *c) {}
13#endif
14
Yinghai Lu879d7922008-09-09 16:40:37 -070015#if defined(CONFIG_CPU_SUP_INTEL) && defined(CONFIG_X86_32)
Harvey Harrison73bdb732008-02-04 16:48:04 +010016int ppro_with_ram_bug(void);
Thomas Petazzoni8d02c212008-08-05 11:45:19 +020017#else
18static inline int ppro_with_ram_bug(void) { return 0; }
19#endif
Thomas Gleixner003a46c2007-10-15 13:57:47 +020020
Thomas Gleixner9c923742019-07-22 20:47:17 +020021extern void cpu_bugs_smt_update(void);
22
H. Peter Anvin1965aae2008-10-22 22:26:29 -070023#endif /* _ASM_X86_BUGS_H */