aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/ldt.h
diff options
context:
space:
mode:
Diffstat (limited to 'xen/include/asm-x86/ldt.h')
-rw-r--r--xen/include/asm-x86/ldt.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/xen/include/asm-x86/ldt.h b/xen/include/asm-x86/ldt.h
index 33de175165..8288ffa118 100644
--- a/xen/include/asm-x86/ldt.h
+++ b/xen/include/asm-x86/ldt.h
@@ -4,13 +4,13 @@
#ifndef __ASSEMBLY__
-static inline void load_LDT(struct exec_domain *ed)
+static inline void load_LDT(struct vcpu *v)
{
unsigned int cpu;
struct desc_struct *desc;
unsigned long ents;
- if ( (ents = ed->arch.guest_context.ldt_ents) == 0 )
+ if ( (ents = v->arch.guest_context.ldt_ents) == 0 )
{
__asm__ __volatile__ ( "lldt %%ax" : : "a" (0) );
}
@@ -18,9 +18,9 @@ static inline void load_LDT(struct exec_domain *ed)
{
cpu = smp_processor_id();
desc = gdt_table + __LDT(cpu) - FIRST_RESERVED_GDT_ENTRY;
- desc->a = ((LDT_VIRT_START(ed)&0xffff)<<16) | (ents*8-1);
- desc->b = (LDT_VIRT_START(ed)&(0xff<<24)) | 0x8200 |
- ((LDT_VIRT_START(ed)&0xff0000)>>16);
+ desc->a = ((LDT_VIRT_START(v)&0xffff)<<16) | (ents*8-1);
+ desc->b = (LDT_VIRT_START(v)&(0xff<<24)) | 0x8200 |
+ ((LDT_VIRT_START(v)&0xff0000)>>16);
__asm__ __volatile__ ( "lldt %%ax" : : "a" (__LDT(cpu)<<3) );
}
}