Skip to content

Commit

Permalink
x86: put get_kernel_rpl in a common location
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Jan 30, 2008
1 parent eee3af4 commit cef1895
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions include/asm-x86/segment.h
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions include/asm-x86/segment_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit cef1895

Please sign in to comment.