Make sure to cmpxchg entire pte on emulated ptwr path.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-08-18 18:17:08 +00:00
1 parent c1a3a8bd90
commit 4ceac099b8
1 file changed
+1 -1
+1 -1
View File
@@ -3115,7 +3115,7 @@ static int ptwr_emulated_update(
if ( do_cmpxchg )
{
ol1e = l1e_from_intpte(old);
if ( cmpxchg((unsigned long *)pl1e, old, val) != old )
if ( cmpxchg((intpte_t *)pl1e, old, val) != old )
{
unmap_domain_page(pl1e);
put_page_from_l1e(nl1e, d);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.