aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-30 07:31:09 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:09 -0500
commitcef189508b2f043fdc2e354645803b6ce004aac3 (patch)
tree1d5ebb5e1ef7ff3d8de1299949dff0328f0f31d9 /include/asm-x86
parenteee3af4a2c83a97fff107ddc445d9df6fded9ce4 (diff)
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>
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/segment.h9
-rw-r--r--include/asm-x86/segment_32.h3
2 files changed, 9 insertions, 3 deletions
diff --git a/include/asm-x86/segment.h b/include/asm-x86/segment.h
index 605068280e28..b3a7a3e9fb19 100644
--- a/include/asm-x86/segment.h
+++ b/include/asm-x86/segment.h
@@ -1,5 +1,14 @@
1#ifndef _ASM_X86_SEGMENT_H_
2#define _ASM_X86_SEGMENT_H_
3
1#ifdef CONFIG_X86_32 4#ifdef CONFIG_X86_32
2# include "segment_32.h" 5# include "segment_32.h"
3#else 6#else
4# include "segment_64.h" 7# include "segment_64.h"
5#endif 8#endif
9
10#ifndef CONFIG_PARAVIRT
11#define get_kernel_rpl() 0
12#endif
13
14#endif
diff --git a/include/asm-x86/segment_32.h b/include/asm-x86/segment_32.h
index 597a47c2515f..ff186e34798a 100644
--- a/include/asm-x86/segment_32.h
+++ b/include/asm-x86/segment_32.h
@@ -129,9 +129,6 @@
129#define SEGMENT_LDT 0x4 129#define SEGMENT_LDT 0x4
130#define SEGMENT_GDT 0x0 130#define SEGMENT_GDT 0x0
131 131
132#ifndef CONFIG_PARAVIRT
133#define get_kernel_rpl() 0
134#endif
135/* 132/*
136 * Matching rules for certain types of segments. 133 * Matching rules for certain types of segments.
137 */ 134 */