bugs.h 493 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_X86_BUGS_H
  3. #define _ASM_X86_BUGS_H
  4. #include <asm/processor.h>
  5. extern void check_bugs(void);
  6. #if defined(CONFIG_CPU_SUP_INTEL)
  7. void check_mpx_erratum(struct cpuinfo_x86 *c);
  8. #else
  9. static inline void check_mpx_erratum(struct cpuinfo_x86 *c) {}
  10. #endif
  11. #if defined(CONFIG_CPU_SUP_INTEL) && defined(CONFIG_X86_32)
  12. int ppro_with_ram_bug(void);
  13. #else
  14. static inline int ppro_with_ram_bug(void) { return 0; }
  15. #endif
  16. #endif /* _ASM_X86_BUGS_H */