[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/5] xen/arm: mpu: Enclose access to MMU specific registers under CONFIG_MMU (arm32)


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • Date: Tue, 4 Feb 2025 19:23:54 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JaDj9A1dHrYS2o7s2ZFeD6vHr6ZkJxFrI1AZiL0c6gs=; b=n2us8eId2FNCDQfHRYxBaSqb+PPSI+rVfGdaCp2H2XNMDHgZK5UxldYQjlElEZMMht/hYjwAwxggSL+eARDsDknhrwc4ePd7yP3HGAAvY7YSfXc3w9rmbbws67SF/EJpkB9Wn1iSAbnGQz6Tpl5y0CPg0Vu1XQXqfks2D6cFaZIPSIaBpCY2aCNApvsV/p8zCB2A5HWWT1iAxyNhU4ed/PoYK6WNa0DXskN8Ql1HKuD5cIIsWfCWEvrAUjco6xmPv//DXJVgcF/1gRmDfQ+x7l1SKr/1dVGTfWjMI8ywX9DMeBVmAoxVyuNZpH8p+fchJfgWSk/65dmUW7sK8CKlJA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FR8O5W0HqihgRki0cgG+k7jj/qvaHwCnJgq2D0exTldrwbZcUbaH6OTjUfJuvH1YZvJQcfrBo9zdSY+I3uBLADGdkT3HqJGRrfsNbuTzxjzbiR1Uxa2Qdf/a0D1ergn3vpXdLa7tMfg9cqdk9R0xKUHIwFKGIrYr4wttra6b32SudPTz6AnyqYw/yDTc0XfOIbdgR8MQJWOM5HSTZoNyNfSzMUcDp6m4Wo4hg5+97UC6mqShiLKddGaqJihNuVHtHxv3X5yeQgrg4mLAb+shBwQPi+DXWhPQpdXZtSWo9pJkQFV5YQxVaIOSTwqCKPbpz0aSK4dl3h7RBqbJhpIytw==
  • Cc: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 04 Feb 2025 19:24:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

All the EL2 MMU specific registers in head.S are enclosed within CONFIG_MMU.

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
---
 xen/arch/arm/arm32/head.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S
index 4ff5c220bc..1d0f84b18f 100644
--- a/xen/arch/arm/arm32/head.S
+++ b/xen/arch/arm/arm32/head.S
@@ -224,6 +224,7 @@ cpu_init_done:
         mcr   CP32(r0, HMAIR0)
         mcr   CP32(r1, HMAIR1)
 
+#ifdef CONFIG_MMU
         /*
          * Set up the HTCR:
          * PT walks use Inner-Shareable accesses,
@@ -232,6 +233,7 @@ cpu_init_done:
          */
         mov_w r0, 
(TCR_RES1|TCR_SH0_IS|TCR_ORGN0_WBWA|TCR_IRGN0_WBWA|TCR_T0SZ(0))
         mcr   CP32(r0, HTCR)
+#endif
 
         mov_w r0, HSCTLR_SET
         mcr   CP32(r0, HSCTLR)
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.