From nobody Tue Apr 23 06:38:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1678985063; cv=none; d=zohomail.com; s=zohoarc; b=FP7rTcFqtno86pLVJik1IvbfSJBxarAwpIdkqNLt09evyp2bAfzJ12U+jWMJjxo2ZjYrGTQQ1WTcSEIhaBwqpRnXQiCvSixpWzX/Ot/oIp53L3k7B4Fdet38NrPb6imoMwp5ynFNnyiVICQY3xNrF7YANDYWbDuf5fBugBgoh/M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678985063; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=W4/tFHZNGBdxbclZ8qo10HAKR6kKnO62EANVEk6h44Y=; b=MYytmxPWhFPoPEqGK+vt8CirgO18TJqaBfwVTBGJHgUo2UdJVHILWAxGdpebD189cQGw0YkW2jLumsd0pE3hf44pKQHdoT6BufWx0K/ftGEc4mpEf+OX1Nw3VnbhOy4YhZRRr3MMjzLQ5d8BCM3uLzsvt2c1Wu4XV1dfiUo0vt4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1678985063415468.6127236367033; Thu, 16 Mar 2023 09:44:23 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.510730.789002 (Exim 4.92) (envelope-from ) id 1pcqhw-0003PK-7a; Thu, 16 Mar 2023 16:44:04 +0000 Received: by outflank-mailman (output) from mailman id 510730.789002; Thu, 16 Mar 2023 16:44:04 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pcqhw-0003OQ-32; Thu, 16 Mar 2023 16:44:04 +0000 Received: by outflank-mailman (input) for mailman id 510730; Thu, 16 Mar 2023 16:44:02 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pcqhu-0001vH-HW for xen-devel@lists.xenproject.org; Thu, 16 Mar 2023 16:44:02 +0000 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [2a00:1450:4864:20::536]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c1b300ba-c419-11ed-87f5-c1b5be75604c; Thu, 16 Mar 2023 17:44:02 +0100 (CET) Received: by mail-ed1-x536.google.com with SMTP id cn21so10302913edb.0 for ; Thu, 16 Mar 2023 09:44:02 -0700 (PDT) Received: from fedora.. (46.204.101.131.nat.umts.dynamic.t-mobile.pl. [46.204.101.131]) by smtp.gmail.com with ESMTPSA id hp12-20020a1709073e0c00b00925ce7c7705sm4019163ejc.162.2023.03.16.09.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 09:44:01 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c1b300ba-c419-11ed-87f5-c1b5be75604c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678985041; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W4/tFHZNGBdxbclZ8qo10HAKR6kKnO62EANVEk6h44Y=; b=giPsQ7nWjl2XNoWSMcelD7Y3F9lMkKnnb+gZXCJO47QX0EBBlEoEEetyumB/xieCpK NMaSOBXwUQ0Mc8H3yvMEiyWUNacX9vmd8yFjKx/KzThLV44b87ECwKspBZBiNu4qV+O/ sG2y7lvbjkwOeu/SaBsfcTvfvJh97CEJLcFd6mqs09dI70eI2ya+MHNQEBgXhHc74YxA /ELmsHOm1eWQc5BBga3Lsz2nbaK8H0vRzQIfgSsk2w+/RCY9IKa0fxp2U79ea6T6RQR8 ZJbGUPP68pB9o1PzJd/cu2GvBHbWiEZyHsAqTGcdjSAxGmrGTQ2zLOX/O1xJXQKE7sqp imVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678985041; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W4/tFHZNGBdxbclZ8qo10HAKR6kKnO62EANVEk6h44Y=; b=gVhyJYGXTzkLcn/vNxqhDH8qXS4wd58yIa5a/Kyc+RT68J3KggTzTlXQf1c6WjS9Gh Ie5TR3wSqve7QGlBV2/qUh8/MApAAjl5HO425qEnoLZyJd609ezEC5ZUIXrIdT6vthF9 FPw0Bf2SEbTKiPoEQitWpPsQ0ffqCjqck0ihwaewyJ4OI0rSPRbwt7Br6ni+T2zMc0pb iIFssSMw9EP3fU5AnS/CcdzzJjMRuP+sFIzHbO+Ms/ZS2XpByubmy6ZKYSAPYkPQqXf2 X8wojBnzoMRfz7gx02xgK1+Ffl4W3nQzdzknT6UC6BeemOQTwy0z2kwYDs2bacxoSCro 40Xg== X-Gm-Message-State: AO0yUKVLXEgfspUoUk6SORQjy+gQdudtfC/H0lUpnIKKTSQKKHioP1ad xSUIdOZREuLsd1X119ftNQCRL+w5OfwGzQ== X-Google-Smtp-Source: AK7set+lD0nudxZcL42hdmyvMz7QDO3FxDw0R2K3M+iu27im2Xaff4akGg5ugZIKjmpAcLeGw42PZw== X-Received: by 2002:a17:906:8a43:b0:8b2:5262:562c with SMTP id gx3-20020a1709068a4300b008b25262562cmr10824009ejc.34.1678985041296; Thu, 16 Mar 2023 09:44:01 -0700 (PDT) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Julien Grall , Jan Beulich , Andrew Cooper , Stefano Stabellini , Gianluca Guida , Oleksii Kurochko , Bob Eshleman , Alistair Francis , Connor Davis Subject: [PATCH v2 2/3] xen/riscv: setup initial pagetables Date: Thu, 16 Mar 2023 18:43:53 +0200 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1678985065515100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Oleksii Kurochko --- Changes in V2: * Update the commit message --- xen/arch/riscv/setup.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/arch/riscv/setup.c b/xen/arch/riscv/setup.c index b56c69a3dc..a3481973ff 100644 --- a/xen/arch/riscv/setup.c +++ b/xen/arch/riscv/setup.c @@ -6,6 +6,7 @@ #include #include #include +#include #include =20 /* Xen stack for bringing up the first CPU. */ @@ -53,6 +54,10 @@ void __init noreturn start_xen(unsigned long bootcpu_id, =20 test_macros_from_bug_h(); =20 + setup_initial_pagetables(); + + enable_mmu(); + early_printk("All set up\n"); =20 for ( ;; ) --=20 2.39.2