mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
x86: put get_kernel_rpl in a common location
This macro is useful for both i386 and x86_64, so put it in a common location, where both arches can grab it. Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
eee3af4a2c
commit
cef189508b
2 changed files with 9 additions and 3 deletions
|
@ -1,5 +1,14 @@
|
|||
#ifndef _ASM_X86_SEGMENT_H_
|
||||
#define _ASM_X86_SEGMENT_H_
|
||||
|
||||
#ifdef CONFIG_X86_32
|
||||
# include "segment_32.h"
|
||||
#else
|
||||
# include "segment_64.h"
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_PARAVIRT
|
||||
#define get_kernel_rpl() 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -129,9 +129,6 @@
|
|||
#define SEGMENT_LDT 0x4
|
||||
#define SEGMENT_GDT 0x0
|
||||
|
||||
#ifndef CONFIG_PARAVIRT
|
||||
#define get_kernel_rpl() 0
|
||||
#endif
|
||||
/*
|
||||
* Matching rules for certain types of segments.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue