[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] minios: fix case when _text is not 0
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1201001726 0 # Node ID 7b1e7e8a51305df3afe90436d7acde30a1080604 # Parent d5e22e766d1f2081aaf2c92fcf3144f1ba681843 minios: fix case when _text is not 0 Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx> --- extras/mini-os/arch/x86/mm.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff -r d5e22e766d1f -r 7b1e7e8a5130 extras/mini-os/arch/x86/mm.c --- a/extras/mini-os/arch/x86/mm.c Tue Jan 22 11:19:40 2008 +0000 +++ b/extras/mini-os/arch/x86/mm.c Tue Jan 22 11:35:26 2008 +0000 @@ -497,11 +497,11 @@ static void clear_bootstrap(void) int n = sizeof(mfns)/sizeof(*mfns); pte_t nullpte = { }; - /* Use page 0 as the CoW zero page */ - memset(NULL, 0, PAGE_SIZE); - mfn_zero = pfn_to_mfn(0); - if (HYPERVISOR_update_va_mapping(0, nullpte, UVMF_INVLPG)) - printk("Unable to unmap page 0\n"); + /* Use first page as the CoW zero page */ + memset(&_text, 0, PAGE_SIZE); + mfn_zero = pfn_to_mfn((unsigned long) &_text); + if (HYPERVISOR_update_va_mapping((unsigned long) &_text, nullpte, UVMF_INVLPG)) + printk("Unable to unmap first page\n"); set_xen_guest_handle(reservation.extent_start, mfns); reservation.nr_extents = n; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |