From dc33311d827818f8c893b88d89bf015327c79a42 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 2 Jun 2005 21:05:33 +0000 Subject: bitkeeper revision 1.1644.1.1 (429f749dKFzVUg9NXDMVu4apHJvpNQ) The last annoying rename: struct exec_domain *ed -> struct vcpu *v Signed-off-by: Keir Fraser --- xen/include/asm-x86/ldt.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xen/include/asm-x86/ldt.h') 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) ); } } -- cgit v1.2.3