diff options
author | cl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk> | 2004-11-16 18:54:49 +0000 |
---|---|---|
committer | cl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk> | 2004-11-16 18:54:49 +0000 |
commit | fa2d69d40e4a75e1f79105c654e379df226be7e6 (patch) | |
tree | 12117e1dc248565329ca1432b7923921a41955ae /xen/include/asm-x86/ldt.h | |
parent | fca0b5369703db72235d06c1973344f9ea2fc499 (diff) | |
download | xen-fa2d69d40e4a75e1f79105c654e379df226be7e6.tar.gz xen-fa2d69d40e4a75e1f79105c654e379df226be7e6.tar.bz2 xen-fa2d69d40e4a75e1f79105c654e379df226be7e6.zip |
bitkeeper revision 1.1159.1.425 (419a4cf9VuB3gYuI3YPyE637uwwiRA)
Extend perdomain_pt to support multiple vcpus.
Add biglock.
Diffstat (limited to 'xen/include/asm-x86/ldt.h')
-rw-r--r-- | xen/include/asm-x86/ldt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/include/asm-x86/ldt.h b/xen/include/asm-x86/ldt.h index 7546d2b0da..84c456120c 100644 --- a/xen/include/asm-x86/ldt.h +++ b/xen/include/asm-x86/ldt.h @@ -17,9 +17,9 @@ static inline void load_LDT(struct exec_domain *p) { cpu = smp_processor_id(); desc = (struct desc_struct *)GET_GDT_ADDRESS(p) + __LDT(cpu); - desc->a = ((LDT_VIRT_START&0xffff)<<16) | (ents*8-1); - desc->b = (LDT_VIRT_START&(0xff<<24)) | 0x8200 | - ((LDT_VIRT_START&0xff0000)>>16); + desc->a = ((LDT_VIRT_START(p)&0xffff)<<16) | (ents*8-1); + desc->b = (LDT_VIRT_START(p)&(0xff<<24)) | 0x8200 | + ((LDT_VIRT_START(p)&0xff0000)>>16); __asm__ __volatile__ ( "lldt %%ax" : : "a" (__LDT(cpu)<<3) ); } } |