From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 25/38] arm: remove old identity map of boot paddr when we are done with it. Date: Fri, 1 Jun 2012 15:39:54 +0000 Message-ID: <1338565207-2888-25-git-send-email-ian.campbell@citrix.com> References: <1338565113.17466.141.camel@zakaz.uk.xensource.com> <1338565207-2888-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1338565207-2888-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Campbell --- xen/arch/arm/mm.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index 160a4e9..ab52171 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -214,6 +214,14 @@ void __init setup_pagetables(unsigned long boot_phys_offset) lpae_t pte, *p; int i; + if ( boot_phys_offset != 0 ) + { + /* Remove the old identity mapping of the boot paddr */ + pte.bits = 0; + dest_va = (unsigned long)_start + boot_phys_offset; + write_pte(xen_second + second_linear_offset(dest_va), pte); + } + xen_paddr = device_tree_get_xen_paddr(); /* Map the destination in the boot misc area. */ -- 1.7.9.1