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>
15 lines
209 B
C
15 lines
209 B
C
#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
|