kernel page attribute change should be reflected on all cpus, since
the page is going to be released after the _dtor() hook is called.
This commit is contained in:
parent
0549360f1d
commit
673606616b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.172 2012/02/24 08:17:20 cherry Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.173 2012/02/24 08:44:44 cherry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
|
||||
@ -171,7 +171,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.172 2012/02/24 08:17:20 cherry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.173 2012/02/24 08:44:44 cherry Exp $");
|
||||
|
||||
#include "opt_user_ldt.h"
|
||||
#include "opt_lockdebug.h"
|
||||
@ -2172,7 +2172,7 @@ pmap_pdp_dtor(void *arg, void *v)
|
||||
/* Set page RW again */
|
||||
pte = kvtopte(object);
|
||||
xpq_queue_pte_update(xpmap_ptetomach(pte), *pte | PG_RW);
|
||||
xpq_queue_invlpg((vaddr_t)object);
|
||||
xen_bcast_invlpg((vaddr_t)object);
|
||||
}
|
||||
splx(s);
|
||||
#endif /* XEN */
|
||||
|
Loading…
Reference in New Issue
Block a user