blob: 794eb2129bc6b97f2e254a4d4871d7ea6747a2a5 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_X86_BUGS_H
3#define _ASM_X86_BUGS_H
4
5#include <asm/processor.h>
6
7extern void check_bugs(void);
8
9#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
15#if defined(CONFIG_CPU_SUP_INTEL) && defined(CONFIG_X86_32)
16int ppro_with_ram_bug(void);
17#else
18static inline int ppro_with_ram_bug(void) { return 0; }
19#endif
20
David Brazdil0f672f62019-12-10 10:32:29 +000021extern void cpu_bugs_smt_update(void);
22
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000023#endif /* _ASM_X86_BUGS_H */