aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/ldt.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-06-02 21:05:33 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-06-02 21:05:33 +0000
commitdc33311d827818f8c893b88d89bf015327c79a42 (patch)
treef724a627d86ed052c2b4d1c816af731d6d6d8f90 /xen/include/asm-x86/ldt.h
parentb5290d3405646879575efe051dc479e7117729a1 (diff)
downloadxen-dc33311d827818f8c893b88d89bf015327c79a42.tar.gz
xen-dc33311d827818f8c893b88d89bf015327c79a42.tar.bz2
xen-dc33311d827818f8c893b88d89bf015327c79a42.zip
bitkeeper revision 1.1644.1.1 (429f749dKFzVUg9NXDMVu4apHJvpNQ)
The last annoying rename: struct exec_domain *ed -> struct vcpu *v Signed-off-by: Keir Fraser <keir@xensource.com>
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) );
}
}