ia64/xen-unstable

changeset 1103:63f485891446

bitkeeper revision 1.736 (4036321eiozM1XWsrgEFsYgqQdvc8A)

memory.c, traps.c:
Fix LDT demand-shadowing.
author kaf24@scramble.cl.cam.ac.uk
date Fri Feb 20 16:13:18 2004 +0000 (2004-02-20)
parents c052158ca3e0
children 8870c27357dd a33324526ddc 951b8af20192
files xen/arch/i386/traps.c xen/common/memory.c
line diff
     1.1 --- a/xen/arch/i386/traps.c	Fri Feb 20 11:15:03 2004 +0000
     1.2 +++ b/xen/arch/i386/traps.c	Fri Feb 20 16:13:18 2004 +0000
     1.3 @@ -332,7 +332,7 @@ asmlinkage void do_page_fault(struct pt_
     1.4           */
     1.5          off  = addr - LDT_VIRT_START;
     1.6          addr = p->mm.ldt_base + off;
     1.7 -        if ( likely(map_ldt_shadow_page(off >> PAGE_SHIFT) == 0) )
     1.8 +        if ( likely(map_ldt_shadow_page(off >> PAGE_SHIFT)) )
     1.9              return; /* successfully copied the mapping */
    1.10      }
    1.11  
     2.1 --- a/xen/common/memory.c	Fri Feb 20 11:15:03 2004 +0000
     2.2 +++ b/xen/common/memory.c	Fri Feb 20 16:13:18 2004 +0000
     2.3 @@ -262,7 +262,7 @@ int alloc_segdesc_page(struct pfn_info *
     2.4  }
     2.5  
     2.6  
     2.7 -/* Map shadow page at offset @off. Returns 0 on success. */
     2.8 +/* Map shadow page at offset @off. */
     2.9  int map_ldt_shadow_page(unsigned int off)
    2.10  {
    2.11      struct task_struct *p = current;