ia64/xen-unstable

changeset 18195:b613bf4c4289

x86: Fix the build after c/s 18163 (5fbcbee355e2)

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 30 09:20:42 2008 +0100 (2008-07-30)
parents 6cd615adaac7
children 4160bc28f0fb
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Wed Jul 30 09:18:35 2008 +0100
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Wed Jul 30 09:20:42 2008 +0100
     1.3 @@ -4645,7 +4645,6 @@ static void *emulate_map_dest(struct vcp
     1.4                                u32 bytes,
     1.5                                struct sh_emulate_ctxt *sh_ctxt)
     1.6  {
     1.7 -    struct segment_register *sreg;
     1.8      unsigned long offset;
     1.9      void *map = NULL;
    1.10  
    1.11 @@ -4658,8 +4657,7 @@ static void *emulate_map_dest(struct vcp
    1.12  
    1.13  #ifndef NDEBUG
    1.14      /* We don't emulate user-mode writes to page tables */
    1.15 -    sreg = hvm_get_seg_reg(x86_seg_ss, sh_ctxt);
    1.16 -    if ( sreg->attr.fields.dpl == 3 )
    1.17 +    if ( hvm_get_seg_reg(x86_seg_ss, sh_ctxt)->attr.fields.dpl == 3 )
    1.18      {
    1.19          gdprintk(XENLOG_DEBUG, "User-mode write to pagetable reached "
    1.20                   "emulate_map_dest(). This should never happen!\n");