From nobody Mon Nov 25 01:02:46 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=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1727899780; cv=none; d=zohomail.com; s=zohoarc; b=ErocsCT0MDc0M3zLqH+KvKamjog2pGiZw2RSeLzNqiCzffJYpVDrG/vCFLeq03ipIurtuu+ProJHyrnJL3xZTGXBC58l7tq0WcAioFx5WLxga9epMLdHuM8aFhIB4GX6/GydK0ImKa+hd+MKI+VCX7ohvjXUdes5mX11WbzdOwE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727899780; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=8mpxVnw2rtIsaSdMnuwMlxzK800socadVEux++4FjuU=; b=OLhk62DCRfUFWO1BVuODBFDXcr60HWn6Bnd+pTVNK4SffFndrND7p63jhqqedxfgOMWNQyBpOV+T0Y5qlYCGHwtt+nyGyIRJrhXkrwL7fa5EsIA6fEjFXuL+jLZ5R04e5oS0LE5IxGTBTieL0CRi4Hr4Ct1svbSWgHy+lMZ5xEE= 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=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727899780632298.016838915544; Wed, 2 Oct 2024 13:09:40 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.809009.1221116 (Exim 4.92) (envelope-from ) id 1sw5ex-0006sn-PC; Wed, 02 Oct 2024 20:09:19 +0000 Received: by outflank-mailman (output) from mailman id 809009.1221116; Wed, 02 Oct 2024 20:09:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sw5ex-0006sX-MQ; Wed, 02 Oct 2024 20:09:19 +0000 Received: by outflank-mailman (input) for mailman id 809009; Wed, 02 Oct 2024 20:09:18 +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 1sw5ew-0006rI-3a for xen-devel@lists.xenproject.org; Wed, 02 Oct 2024 20:09:18 +0000 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [2a00:1450:4864:20::529]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 33c27f29-80fa-11ef-a0ba-8be0dac302b0; Wed, 02 Oct 2024 22:09:17 +0200 (CEST) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5c89f3f28b6so128046a12.2 for ; Wed, 02 Oct 2024 13:09:17 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c882405bb8sm7939677a12.12.2024.10.02.13.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 13:09:15 -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: 33c27f29-80fa-11ef-a0ba-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1727899756; x=1728504556; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8mpxVnw2rtIsaSdMnuwMlxzK800socadVEux++4FjuU=; b=j7oTTqofEU6gw4rzqDrJGmf75cKv3AVEKjlT1eav3zIoQyg7fzEGyqAegrqF7n+9k6 Ya5x3X7B4WvdLBpYZu39H754pBkJ6SMFdn/KAlRUB9vD/wLDxz5v19j+TnJmfB0AksOl ++mHpEAapbOojB7mjHjg81lNzL0JX00cPgN48= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727899756; x=1728504556; 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=8mpxVnw2rtIsaSdMnuwMlxzK800socadVEux++4FjuU=; b=L2ifUeo5SLFdBhZkJV8QCVQNaei4Ca6JFAcDucnjqWE5gKrnR38eocqkqp/+QR2lZW 2nh0eVwN7Pb6g/hhL3PIV1PTVzo2swukUFyqtDPoSC6SdTcMHbOanxA6iG5nwYo09nFV 3X6DzMCZXS8NFPRMSTYooGp7R3E8FpIL+wrlk04Vx/5AycQmtwCLDiCsZH8u2XKbFdax OT6I5BfjVp6Nq6EgF1VBu9Fb7hOzxvB2tI7/u6nrkonZ1CL/YBSWh5lc8vLeUSkGvSWi qTANpDWcC4SFXzJe7Bikt7YxL5yFQDwi/5aCsUmp3sLPCDzybcYvEZ2IYMvTM8QBof/I DSxw== X-Gm-Message-State: AOJu0YxvLiJgC0UTTEt7XkzCOt957vMFPVNRGUHBSmi/w8zRh1C+yJHU LIlz4UWjDqr1JLdJa6MHqs5+XWbOtbEz2OWmHzLKIDQoWQjlA6cRM23VD91Z2mY+e9Qut8JmqbV hz6U= X-Google-Smtp-Source: AGHT+IEixX0Bsej9XM12xmY27f0Lzd6EtV/5EFDvjGApFVel/3DcNQCYom44RLt6QUltjbo5CfWTAA== X-Received: by 2002:a05:6402:4402:b0:5c5:c060:420d with SMTP id 4fb4d7f45d1cf-5c8b1b6ffebmr3405946a12.25.1727899756072; Wed, 02 Oct 2024 13:09:16 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH] x86/boot: Convert remaining uses of the legacy ALIGN Date: Wed, 2 Oct 2024 21:09:13 +0100 Message-Id: <20241002200913.1963443-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1727899781953116600 There are only two remaining standalone uses the legacy ALIGN macro. Drop these by switching the .incbin's over to using FUNC()/END() which has alignment handled internally. While the incbin's aren't technically one single function, they're as good as one single function. Finally, expand ALIGN inside the legacy ENTRY() macro in order to remove AL= IGN itself. No functional change. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- CC: Jan Beulich CC: Roger Pau Monn=C3=A9 before/after builds show no change at all, except for cmdline_parse_early()/reloc() ELF metadata. --- xen/arch/x86/boot/head.S | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S index 6a06f6c9ea46..837740477c6e 100644 --- a/xen/arch/x86/boot/head.S +++ b/xen/arch/x86/boot/head.S @@ -10,9 +10,8 @@ #include #include =20 -#define ALIGN .align CONFIG_FUNCTION_ALIGNMENT, CODE_FILL #define ENTRY(name) \ - ALIGN; \ + .align CONFIG_FUNCTION_ALIGNMENT, CODE_FILL; \ GLOBAL(name) #define GLOBAL(name) \ .globl name; \ @@ -850,13 +849,13 @@ trampoline_setup: * cmdline and reloc are written in C, and linked to be 32bit PIC = with * entrypoints at 0 and using the fastcall convention. */ - ALIGN -cmdline_parse_early: +FUNC_LOCAL(cmdline_parse_early) .incbin "cmdline.bin" +END(cmdline_parse_early) =20 - ALIGN -reloc: +FUNC_LOCAL(reloc) .incbin "reloc.bin" +END(reloc) =20 ENTRY(trampoline_start) #include "trampoline.S" base-commit: 41190d2ceb03b12ffc17a66c04de519c26a6052a --=20 2.39.5