From patchwork Mon Aug 12 17:30:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 171107 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3120359ily; Mon, 12 Aug 2019 10:31:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJez3jQhkT+IE5ZJjonEi8BKgHUP6goPnwztgq2sSZzoN4E+sZQaWjPZEW9A+NJQgM3JV7 X-Received: by 2002:a5e:9e0a:: with SMTP id i10mr35821428ioq.44.1565631114423; Mon, 12 Aug 2019 10:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565631114; cv=none; d=google.com; s=arc-20160816; b=mfOtck2jp6lImx6m2XfnnmxnVoBk2SuWpr3tpcC4/ioaClDH7plaHAMMbFCJFw2yft m31MEJYEvdFV6OitN3+MuQ5t8jB/BqUA2ObsqtYFPkEEHg8w/vMOWogeQki6Nr+seEZb QazjNHYLMPMW6mKMfjoFxUT7zLJMxmrVu9rxPPuJvPjHZA04tJe6XQ1+u2G8DyuLMAqA DvwiLCvjslTfYYQfRiIKDGnGBEmP42buKTLlfcjKmna6mo3VWBVP27k5xvyDMbckbxzM McYe0VWNGeZPE4WbVFXAtIZSKjt3LclbjiRTwKpY23zFAyF18o0DpFVvdDlGJF1nY2gN YlNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from; bh=NUE/1p5Sow7PaM/gxco4h1fyZ4YFzPuhzqHez7gtG9A=; b=gUdmp8B8Muh2tbtfClOkqd4J/eqjxtNliywEoeFB0S2VZHRG/Fde2JSxKh4qL9Ed/7 dFgdWR5BC2hUTN7RkCe50D7iAKj05dhz1dXzcKRScuEoNb9orb1y8/0wSUgjt1Ktr6eS GZBjcUxdyqnmhta/kCuHtb5IlygzBdtD+SAoqlHQSDeyLoaCqR3h4qi1V9MDi13QBMcP 2KDx9NIprcud3zTT+BVGgDiCWzoq4YJ34dmhL5FqpTc2IahS+mMGnD94DEe9R/36hO0R 0tKKWukmf88DyqRAlHxgezUQuqMqfn5Gecm8QqHsgOJuABBb3tWX2i+RqK7RWW+fXRfp tDYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id g6si12583529jar.83.2019.08.12.10.31.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Aug 2019 10:31:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hxE9d-0006qh-1i; Mon, 12 Aug 2019 17:30:45 +0000 Received: from [172.99.69.81] (helo=us1-rack-iad1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hxE9b-0006oz-Lm for xen-devel@lists.xenproject.org; Mon, 12 Aug 2019 17:30:43 +0000 X-Inumbo-ID: e911ec08-bd26-11e9-984b-bf171714a9dd Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id e911ec08-bd26-11e9-984b-bf171714a9dd; Mon, 12 Aug 2019 17:30:42 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A2A8515AB; Mon, 12 Aug 2019 10:30:42 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F09C13F706; Mon, 12 Aug 2019 10:30:41 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 12 Aug 2019 18:30:08 +0100 Message-Id: <20190812173019.11956-18-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190812173019.11956-1-julien.grall@arm.com> References: <20190812173019.11956-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH v3 17/28] xen/arm32: head: Document enable_mmu() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , Stefano Stabellini , Volodymyr Babchuk MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Document the behavior and the main registers usage within enable_mmu(). Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v3: - Add Stefano's acked-by Changes in v2: - Patch added --- xen/arch/arm/arm32/head.S | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S index 83f8774e2a..f8603051e4 100644 --- a/xen/arch/arm/arm32/head.S +++ b/xen/arch/arm/arm32/head.S @@ -423,6 +423,13 @@ virtphys_clash: b fail ENDPROC(create_page_tables) +/* + * Turn on the Data Cache and the MMU. The function will return on the 1:1 + * mapping. In other word, the caller is responsible to switch to the runtime + * mapping. + * + * Clobbers r0 - r3 + */ enable_mmu: PRINT("- Turning on paging -\r\n")