From patchwork Fri Apr 7 15:48:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksii Kurochko X-Patchwork-Id: 13205025 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 A7FB8C77B6C for ; Fri, 7 Apr 2023 15:48:58 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.519067.806238 (Exim 4.92) (envelope-from ) id 1pkoKW-0002LD-Us; Fri, 07 Apr 2023 15:48:48 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 519067.806238; Fri, 07 Apr 2023 15:48:48 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pkoKW-0002L6-Ql; Fri, 07 Apr 2023 15:48:48 +0000 Received: by outflank-mailman (input) for mailman id 519067; Fri, 07 Apr 2023 15:48:47 +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 1pkoKV-0001rE-9T for xen-devel@lists.xenproject.org; Fri, 07 Apr 2023 15:48:47 +0000 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [2a00:1450:4864:20::22b]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id ae10e726-d55b-11ed-b464-930f4c7d94ae; Fri, 07 Apr 2023 17:48:45 +0200 (CEST) Received: by mail-lj1-x22b.google.com with SMTP id s20so23593326ljp.7 for ; Fri, 07 Apr 2023 08:48:45 -0700 (PDT) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id v12-20020a2e9f4c000000b00295a583a20bsm874765ljk.74.2023.04.07.08.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 08:48:44 -0700 (PDT) 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: ae10e726-d55b-11ed-b464-930f4c7d94ae DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680882525; x=1683474525; 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=dR16O0lugGTgYXlwGY6UhsQKrRSYw0CGkPTToCj++Ug=; b=WNtfsY4gAIKeRRXFCMruuMW9ZmEahyFB2wL7ubeBg+g9lGealukXMDfhRE1Y8sDvr1 XKpW8xy5x7dKsTnjBzJS9Th7BV7Y2rc5yvDVY4IsrCaRjqCRdzDm3hlymk4pJQN8JBO6 jF+ZvJivr55eMmvEhZhgP5sZ4tpik0pNAIeJ8ApqjKGIG3YEROX3SUxvwo+W2Ncg+QPK Or+Ws0WpsQ4fUmVsn0pUnxU2Zca34uwq2J16MO6bdpgjboqcJAf+zyznCgs1fssWos7B fUgtreelqzzAqy+Fgnqcq2al94r4uQMOmh5Dof4DmeOi1q5x5jyDqYlGNra3kfcEqB3a MhRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680882525; x=1683474525; 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=dR16O0lugGTgYXlwGY6UhsQKrRSYw0CGkPTToCj++Ug=; b=QzowfV09XlT4N7tuOWoTu1TCATz56kWehqiRKabg89IBOxtRZxNZWeKD1q/qSNJ3NI 8+N0tHIxzZEZnUmJG92Ymg+KNhv0XoaA60mDSe1F4rInbBWXyWoPAouE8RQZEdT/nJ4k IiegWpEBXDr/j7h3mFAEr97+q3dhj5jr6DvVYZorrTEw5LCSvRLyWkls/FbRrSmrCCT/ N+AsHewZJdGo/hgMW56CuFYbF0sb2ssam0DLIfttwdt8x1EDSgRx08/jahLPrGT2/arz E7EryCpKNGKWUd5bmSbEuh8sy1S/S7YRrVmZmyvbTheXfRLDSSuzzvVzLYDIyfhJJk0w 2clA== X-Gm-Message-State: AAQBX9fcB+5W5U69V3EZD91GPZLuutfiBM5w2OmcIsvRdYJG2fESAEMu LQluQ3TLqCs2M9HzV9COyHXyMoeOWH8= X-Google-Smtp-Source: AKy350bkZK1Y1VW7X1oCiqKF1QUHOQQXqi85UO/S8xap3BZ/klg3do3at0JUwxjNXS5JlXSehm7jmA== X-Received: by 2002:a2e:9dc7:0:b0:298:39f9:fb2f with SMTP id x7-20020a2e9dc7000000b0029839f9fb2fmr532236ljj.31.1680882525256; Fri, 07 Apr 2023 08:48:45 -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 v4 3/3] xen/riscv: remove dummy_bss variable Date: Fri, 7 Apr 2023 18:48:39 +0300 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 After introduction of initial pagetables there is no any sense in dummy_bss variable as bss section will not be empty anymore. Signed-off-by: Oleksii Kurochko --- Changes in V4: - Nothing changed. Only rebase --- Changes in V3: * patch was introduced in the current one patch series (v3). --- Changes in V2: * patch was introduced in the current one patch series (v2). --- xen/arch/riscv/setup.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/xen/arch/riscv/setup.c b/xen/arch/riscv/setup.c index cf5dc5824e..845d18d86f 100644 --- a/xen/arch/riscv/setup.c +++ b/xen/arch/riscv/setup.c @@ -8,14 +8,6 @@ unsigned char __initdata cpu0_boot_stack[STACK_SIZE] __aligned(STACK_SIZE); -/* - * To be sure that .bss isn't zero. It will simplify code of - * .bss initialization. - * TODO: - * To be deleted when the first real .bss user appears - */ -int dummy_bss __attribute__((unused)); - void __init noreturn start_xen(unsigned long bootcpu_id, paddr_t dtb_addr) {