From nobody Mon Apr 13 05:23:35 2026 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=1771000180; cv=none; d=zohomail.com; s=zohoarc; b=FzAh5AWvJ5Xf8tFUF7seglKAoMPzge24JAfQOQW7YNBaPreHgAG3rY3TNeKy6aNvNHNlpCzd2jQz9DLEEW8eUHp+xT4fKYiCNJNghrRb3bsQqyFUM4CZRqGRN3sR5HUFfudi4om60Kt4pvkXu6u+K0daKViyffLdCx9wBP95sMw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771000180; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=xayJDkaSPO2aBUbsoQhFpwQ2/yxRUvX1GYhVq8xOEcM=; b=iC4DxtJk0WcizhG3AfHthXoUgEhZ7GCIbf9jU2WC/tzrNle9s+8Ae4EE/4z2A3OFFrxDxbb/4p4lYYgzJBDF3wB4FjwGMN2cSJOG1EHZALL5OuLK4Hpx36EaQScpI7X859f62UwAsaca8mGRKX96gjLmp6mUap5n8z4k4vpcVAI= 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 1771000180724557.5339614345645; Fri, 13 Feb 2026 08:29:40 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1231312.1536503 (Exim 4.92) (envelope-from ) id 1vqw2e-0005p2-Ku; Fri, 13 Feb 2026 16:29:16 +0000 Received: by outflank-mailman (output) from mailman id 1231312.1536503; Fri, 13 Feb 2026 16:29:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vqw2e-0005oF-EK; Fri, 13 Feb 2026 16:29:16 +0000 Received: by outflank-mailman (input) for mailman id 1231312; Fri, 13 Feb 2026 16:29:15 +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 1vqw2d-0005Ws-8z for xen-devel@lists.xenproject.org; Fri, 13 Feb 2026 16:29:15 +0000 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [2a00:1450:4864:20::32c]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 226660c8-08f9-11f1-b163-2bf370ae4941; Fri, 13 Feb 2026 17:29:14 +0100 (CET) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4836f363d0dso9262185e9.3 for ; Fri, 13 Feb 2026 08:29:14 -0800 (PST) Received: from fedora (user-109-243-67-101.play-internet.pl. [109.243.67.101]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4834d5ebd1bsm303288185e9.6.2026.02.13.08.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Feb 2026 08:29:13 -0800 (PST) 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: 226660c8-08f9-11f1-b163-2bf370ae4941 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771000154; x=1771604954; darn=lists.xenproject.org; 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=xayJDkaSPO2aBUbsoQhFpwQ2/yxRUvX1GYhVq8xOEcM=; b=cM7JmWEYRKysxi+TTaAIuaCeaMegx1gxAcfk9gFIF3bzAHeEqjS/6fCKfkyc3vlw6N 3eLfw3rjQ73uOwmq6aB2ogh4r3AjZ1t0DaAAzswOgVBfF/+FVvOyzKpohvww+wWLRpDr jJiyP6vYaEMPhfhYlv5bJPk5mqfCLHZWQs1pPXlC0ydodeIhmk6dbjUvNqrCAa0TwWRN sQ3pnUh5GUwBiJ4I6DA6EEwKRRyuUQbvDjLw1mx0NH0797kH9IeNmi+x2MqGtDgqvbys n3gKsDwUee/3hHKvszn3ePHnRR7EzQf1frnmkWANbzVkNZc2hIqnbbOJho5fC5ZU2WsA MSFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771000154; x=1771604954; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=xayJDkaSPO2aBUbsoQhFpwQ2/yxRUvX1GYhVq8xOEcM=; b=YpGE4tBdd65/zA+/d4T1W2eRbqc7yagzZxKX66/O72FDSjd7/KiRZUfb2NsA7uczw1 5LWUhP6Vv+v0RWMPbyEsWjT5xHhqctAf/3MS3tWMiSl4z3UuTuNriZow66ekDmtJvHzT mqZ1+knbj1ru4zBA5L4rC/goGa9I0og1UONsPTBwBxsB1AjtLHWrFnWXIwJPpCE7JSwc yOw9EYCo/dJ0BwReavpZiwfkQaGr2bLXWT6YLFTdfdU9GW2/fWISkkRQ+B3ja2INo8i8 vewOMiQO9Z7WD0+Oj2Tr0v7M9bI8N2+i+oy2Qs8Jhy16d/k1cjOOL/cil14xjYEx0xXV tEmQ== X-Gm-Message-State: AOJu0Yz4nrOTvCMXb7s82nUKieRNrZtFLSokcbdH2yY+m/HgWNKAg/Lf 33W+81gDuC0A1ufUhCPBriwQI9l46o28crq5M3FGhe9T5aLni5/AsDoKzvXNPzxi X-Gm-Gg: AZuq6aLtKHC3e+GF8fOSKP6U88/UR+aXm5psnKVCAH3K15Cz6hrouJj5wYN3ww9lnop xioTpFvrpThe+OaMEbdI9xxPoz4nJxnLiCY3zuNljJ2O/0I8NMdVXd0izOo2RNss1/+i7rAINkn 6qdbiX3nZIFPAzjOd8ItySZ5DrCtagtdD0qjpSsCAacVMVSnMyae3oSg5X/G3saak7caJx9OdrX iPvlKQzLWGmvpH3h+85w3xdNj80ZEfJ+raseytE8jblnHnLqpXVhJDcM36YRSxtY8MucpwBEBuu 2WMmQm+Am9PK9Ajctp5iguck9uGPF86UBnreFCNRpVtPmB11SW5on6lnogapgiaUdNrmECArwiV 7xaRA/KwV+3XHrmCiKKGveiz3C5z5jFoEfczJ+m8wGsLyLFIzB4CRzfMniWFcIFE4+Z54J0Yiyw vqbb+Q/6HweovyYzha+FQAAnc6fyOnLShEA37so5H09mgfL+dsjlx02EURGk4ziPtbgw== X-Received: by 2002:a05:600c:1909:b0:480:1c85:88bf with SMTP id 5b1f17b1804b1-48373a7438bmr36959985e9.27.1771000153375; Fri, 13 Feb 2026 08:29:13 -0800 (PST) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Romain Caritey , Oleksii Kurochko , Alistair Francis , Connor Davis , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [PATCH v4 03/16] xen/riscv: build setup code as .init Date: Fri, 13 Feb 2026 17:28:49 +0100 Message-ID: X-Mailer: git-send-email 2.52.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1771000181413154100 Content-Type: text/plain; charset="utf-8" At the moment, all code and data in setup.c are marked with __init or __init_data, so leverage this by using setup.init.o instead of setup.o in Makefile. Suggested-by: Jan Beulich Signed-off-by: Oleksii Kurochko Acked-by: Jan Beulich --- Changes in V4: - New patch. --- xen/arch/riscv/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/riscv/Makefile b/xen/arch/riscv/Makefile index caa1aac5b2f6..bc47e83b26d7 100644 --- a/xen/arch/riscv/Makefile +++ b/xen/arch/riscv/Makefile @@ -12,7 +12,7 @@ obj-y +=3D paging.o obj-y +=3D pt.o obj-$(CONFIG_RISCV_64) +=3D riscv64/ obj-y +=3D sbi.o -obj-y +=3D setup.o +obj-y +=3D setup.init.o obj-y +=3D shutdown.o obj-y +=3D smp.o obj-y +=3D smpboot.o --=20 2.52.0