ia64/xen-unstable

changeset 6254:978ce7f6a3eb

Make sure to cmpxchg entire pte on emulated ptwr path.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Aug 18 18:17:08 2005 +0000 (2005-08-18)
parents 0cd6a23b8d6e
children 11f556cac45b 99914b54f7bf
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Thu Aug 18 18:02:46 2005 +0000
     1.2 +++ b/xen/arch/x86/mm.c	Thu Aug 18 18:17:08 2005 +0000
     1.3 @@ -3115,7 +3115,7 @@ static int ptwr_emulated_update(
     1.4      if ( do_cmpxchg )
     1.5      {
     1.6          ol1e = l1e_from_intpte(old);
     1.7 -        if ( cmpxchg((unsigned long *)pl1e, old, val) != old )
     1.8 +        if ( cmpxchg((intpte_t *)pl1e, old, val) != old )
     1.9          {
    1.10              unmap_domain_page(pl1e);
    1.11              put_page_from_l1e(nl1e, d);