mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
AMD 2nd generation EPYC processors support the UMIP (User-Mode Instruction Prevention) feature. So, rename X86_INTEL_UMIP to generic X86_UMIP and modify the text to cover both Intel and AMD. [ bp: take of the disabled-features.h copy in tools/ too. ] Signed-off-by: Babu Moger <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Ricardo Neri <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: "[email protected]" <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
13 lines
317 B
C
13 lines
317 B
C
#ifndef _ASM_X86_UMIP_H
|
|
#define _ASM_X86_UMIP_H
|
|
|
|
#include <linux/types.h>
|
|
#include <asm/ptrace.h>
|
|
|
|
#ifdef CONFIG_X86_UMIP
|
|
bool fixup_umip_exception(struct pt_regs *regs);
|
|
#else
|
|
static inline bool fixup_umip_exception(struct pt_regs *regs) { return false; }
|
|
#endif /* CONFIG_X86_UMIP */
|
|
#endif /* _ASM_X86_UMIP_H */
|