diff options
Diffstat (limited to 'include/asm-x86/desc.h')
-rw-r--r-- | include/asm-x86/desc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-x86/desc.h b/include/asm-x86/desc.h index 99c4adc851e2..a6fdd7c7b6b2 100644 --- a/include/asm-x86/desc.h +++ b/include/asm-x86/desc.h | |||
@@ -69,6 +69,11 @@ static inline void load_LDT(mm_context_t *pc) | |||
69 | preempt_enable(); | 69 | preempt_enable(); |
70 | } | 70 | } |
71 | 71 | ||
72 | static inline unsigned long get_desc_base(struct desc_struct *desc) | ||
73 | { | ||
74 | return desc->base0 | ((desc->base1) << 16) | ((desc->base2) << 24); | ||
75 | } | ||
76 | |||
72 | #else | 77 | #else |
73 | /* | 78 | /* |
74 | * GET_DESC_BASE reads the descriptor base of the specified segment. | 79 | * GET_DESC_BASE reads the descriptor base of the specified segment. |