-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Glauber de Oliveira Costa
authored and
Ingo Molnar
committed
Jan 30, 2008
1 parent
eee3af4
commit cef1895
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters