mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
![Borislav Petkov](/assets/img/avatar_default.png)
Make the doublefault exception handler unconditional on 32-bit. Yes, it is important to be able to catch #DF exceptions instead of silent reboots. Yes, the code size increase is worth every byte. And one less CONFIG symbol is just the cherry on top. No functional changes. Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Andy Lutomirski <luto@kernel.org> Link: https://lkml.kernel.org/r/20200404083646.8897-1-bp@alien8.de
13 lines
271 B
C
13 lines
271 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_X86_DOUBLEFAULT_H
|
|
#define _ASM_X86_DOUBLEFAULT_H
|
|
|
|
#ifdef CONFIG_X86_32
|
|
extern void doublefault_init_cpu_tss(void);
|
|
#else
|
|
static inline void doublefault_init_cpu_tss(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* _ASM_X86_DOUBLEFAULT_H */
|