From patchwork Thu Mar 2 13:23:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksii Kurochko X-Patchwork-Id: 13157332 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0269C7EE33 for ; Thu, 2 Mar 2023 13:23:45 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.504921.777370 (Exim 4.92) (envelope-from ) id 1pXiuA-0008Qv-53; Thu, 02 Mar 2023 13:23:30 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 504921.777370; Thu, 02 Mar 2023 13:23:30 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pXiuA-0008Qo-2I; Thu, 02 Mar 2023 13:23:30 +0000 Received: by outflank-mailman (input) for mailman id 504921; Thu, 02 Mar 2023 13:23:29 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pXiu8-0008Qd-V4 for xen-devel@lists.xenproject.org; Thu, 02 Mar 2023 13:23:29 +0000 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [2a00:1450:4864:20::229]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 698b6cdc-b8fd-11ed-a550-8520e6686977; Thu, 02 Mar 2023 14:23:26 +0100 (CET) Received: by mail-lj1-x229.google.com with SMTP id t14so17578755ljd.5 for ; Thu, 02 Mar 2023 05:23:25 -0800 (PST) Received: from fedora.. (46.204.108.203.nat.umts.dynamic.t-mobile.pl. [46.204.108.203]) by smtp.gmail.com with ESMTPSA id s8-20020a05651c048800b00290679ebac1sm2109551ljc.9.2023.03.02.05.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 05:23:24 -0800 (PST) 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: 698b6cdc-b8fd-11ed-a550-8520e6686977 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677763405; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=r54OMOhW88QqcfBk7WQqFpi2G04PCGrALjff0dQs4W4=; b=CkFoCC6UYBLofYUgLsdXk2M53Tnc30hPp9uSKjziOo0o49mhDqUhpevAVmfR9PRbBb Q0KwL20RwFzcnuChF78uvhMW+Ug/2sAS6qwypcBpKlgbZCKAWZEqsmTt90vJ8ck5Axko f9AOKkQk+oDSTl0+IyKcTI6RUrI02GFh6LDb9GNZh0lUiU7i/UVg1yGqTBH1xgXiboIC ZDXmqtuqKBG3GJ0bykvuGg881NImob1CalHGifb978KHn11VNKurqHaP/geBHAzrw4eW UpMIakYhID2CoTDXgqMxuEEKL/BURqynn8tZZ+RkYQ7L0dmvDQvV3YZh7ymJyDgrXxoO 1hjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677763405; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=r54OMOhW88QqcfBk7WQqFpi2G04PCGrALjff0dQs4W4=; b=QWbBeIqXpLrBmOqrjgOSuopO5AB9SUk/s3mVA4yG2BEEXLbecyt2qPcL/IsUjpQgdM d/1uyNC1cDOzO4LgZJV8+uxYRO77mzMDn1rDC2k50oGKYV1z8egLj3m3hdRIh0B+yloT agO8Jwv2PMPrn3x0I4UT3PbUxKhmMMMtFHEDQ7eHAOJH+f+p+Y/0fVTBpaC3wKKV2wzk sS+/Orn858iKNG1cVevuZFR5jM5TyEzvUg5KomKdo1GSgM/FL5Nll+gbNeb3Zcd9GekP YSbLmFR6LcIk3/zHris6muJ3WK45TsfwyvbDyJLoR/Pr415Su9JwvyoRMy356r1PH8nx OdcQ== X-Gm-Message-State: AO0yUKUsO6F1kUt/TMPbj5TjMOpGc3rfuuqUDyMWBtFpYzsdhFdCOMsU sWnM2MvPFkpo15YAVhbSNkC8Edx23Xw= X-Google-Smtp-Source: AK7set8xx+VVqPcSxKQZX0cI/xrBqy9FioTJTaXFF8ais5noatS9ErlTStdhsqBeu/sZcXO14ItHDA== X-Received: by 2002:a05:651c:b24:b0:295:d633:7401 with SMTP id b36-20020a05651c0b2400b00295d6337401mr2423400ljr.47.1677763404836; Thu, 02 Mar 2023 05:23:24 -0800 (PST) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Jan Beulich , Andrew Cooper , Stefano Stabellini , Gianluca Guida , Oleksii Kurochko , Bob Eshleman , Alistair Francis , Connor Davis Subject: [PATCH v2 0/3] Do basic initialization things Date: Thu, 2 Mar 2023 15:23:17 +0200 Message-Id: X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 The patch series groups and updates the following patches: 1. xen/riscv: disable fpu 2. xen/riscv: initialize .bss section 3. xen/riscv: read/save hart_id and dtb_base passed by bootloader --- Changes since v1: * initialization of .bss was moved to head.S * read/save/pass of hart_id and dtb_base passed by a bootloader were moved to head.S. Also, it was updated start_xen() arguments to recieve hard_id & dtb_base --- Oleksii Kurochko (3): xen/riscv: read/save hart_id and dtb_base passed by bootloader xen/riscv: initialize .bss section xen/riscv: disable fpu xen/arch/riscv/include/asm/asm.h | 4 ++++ xen/arch/riscv/riscv64/head.S | 33 ++++++++++++++++++++++++++++++++ xen/arch/riscv/setup.c | 11 ++++++++++- 3 files changed, 47 insertions(+), 1 deletion(-)