From nobody Sun Sep 21 23:28:17 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=flygoat.com Return-Path: Received: from coreboot.org (mail.coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 175739159940517.496374479028077; Mon, 8 Sep 2025 21:19:59 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id C7A184C479; Tue, 9 Sep 2025 04:19:56 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (fout-b1-smtp.messagingengine.com [202.12.124.144]) by coreboot.org (Postfix) with ESMTP id BDA8540450 for ; Tue, 9 Sep 2025 04:18:08 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mailfout.stl.internal (Postfix) with ESMTP id 934171D001B0; Tue, 9 Sep 2025 00:18:07 -0400 (EDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by phl-compute-01.internal (MEProxy); Tue, 09 Sep 2025 00:18:07 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) 9 Sep 2025 00:18:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1757391487; x=1757477887; bh=nH+QnaFz42C5eQWeSovF0HOBdGbPhped5c8EuEzjf+w=; b= ezWdMQ6Ddn75ENMXjqJvUecK5+rNMpajlRPpuVsQdTujva2PqQDCfsHjedD49E0i Ig/IKIwvdWvXh2QPYvdARQHelYmUmxIl2eXCWRo7OQhJ0Aj0iNRr/Ygfoc/8dV5w ygzjmDAgS+PpZDyLlPL9GaGEz8JI600wMQT60cV7WvG9JeAeM/Oo/WwhvwrDT/ql TEmXrErsVbs7xHMBu7Lg7pwceBAlRhqxj28hOgLAgIpRq4SzAjR9OI6LBSZpCR0d BBkECsy4tfVXXnE2Bnf22atAdtS1bwtspOjTzfcilvPD9rJh55ycMiEEu7u3DIFV eaAygUKvS1LQXG6PnuX4Rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1757391487; x= 1757477887; bh=nH+QnaFz42C5eQWeSovF0HOBdGbPhped5c8EuEzjf+w=; b=m nlYlMDpniQImcqmR7V/UmcyqcbLniTfbhCYxsJ2+iZ5ban/lhn6JtiCUTGv+EA+r ynizSnJ3yN/ip+xrZjUtPrlWty/ZI13O0+cTY2lgm/1M99yVgIcnTEUL26nFABrw K47/4AOb7Bp7ARdGWpbAPFY7js5EtxDQOOLUt4jTuGpwnQeoGdMwUF5MtPFvhaMu 7M26jgAWWJlx27RVUeK5VyAPxiQXNwVfiadyU1/NDf62FSBFQJ3xp9CDv2wz7Y2I 0+qNs/aA9C2+opDSXRb7dzYrhggupbe6knaZYQblooTRNjAGC7waOfJ3Wj2XnQ6Y pHQC7tYptbbz/oyI2fy2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduleegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertd ertdejnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghnghes fhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhepvdekiefhfeevkeeuveetfe elffekgedugefhtdduudeghfeuveegffegudekjeelnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgoh grthdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepshgvrggsihhoshesshgvrggsihhoshdrohhrghdprhgtphhtthhopehjihgrgi hunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail From: Jiaxun Yang Date: Tue, 09 Sep 2025 04:17:58 +0000 MIME-Version: 1.0 Message-Id: <20250909-build-v3-5-3128c8c8c3ad@flygoat.com> References: <20250909-build-v3-0-3128c8c8c3ad@flygoat.com> In-Reply-To: <20250909-build-v3-0-3128c8c8c3ad@flygoat.com> To: seabios@seabios.org Message-ID-Hash: RZ23C3GI3XLQ6IADA3A6K2S2VWEW2EAE X-Message-ID-Hash: RZ23C3GI3XLQ6IADA3A6K2S2VWEW2EAE X-MailFrom: jiaxun.yang@flygoat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Jiaxun Yang X-Mailman-Version: 3.3.11b1 Precedence: list Subject: [SeaBIOS] [PATCH v3 5/9] asm-offset: Refresh definitions from Linux List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: ---- X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1757391600581116600 Content-Type: text/plain; charset="utf-8" To adopt newer toolchains. Signed-off-by: Jiaxun Yang --- scripts/gen-offsets.sh | 7 ++++--- src/gen-defs.h | 8 +++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/scripts/gen-offsets.sh b/scripts/gen-offsets.sh index 73dede82b86da25cba0abbcf86039490c21e90cc..eeddca7f594a108a22439e5827b= a09714a52b254 100755 --- a/scripts/gen-offsets.sh +++ b/scripts/gen-offsets.sh @@ -9,9 +9,10 @@ cat > "$OUTFILE" </{s:->#\(.*\):/* \1 */:; \ - s:^->\([^ ]*\) [\$\#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \ - s:->::; p;}" < "$INFILE" >> "$OUTFILE" +sed -ne 's:^[[:space:]]*\.ascii[[:space:]]*"\(.*\)".*:\1:; + /^->/{s:->#\(.*\):/* \1 */:; + s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; + s:->::; p;}' < "$INFILE" >> "$OUTFILE" cat >> "$OUTFILE" <" #sym " %0 " #val : : "i" (val)) + asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val)) =20 -#define BLANK() \ - asm volatile("\n->" : : ) +#define BLANK() asm volatile("\n.ascii \"->\"" : : ) =20 #define OFFSET(sym, str, mem) \ DEFINE(sym, offsetof(struct str, mem)) =20 #define COMMENT(x) \ - asm volatile("\n->#" x) + asm volatile("\n.ascii \"->#" x "\"") =20 #endif // gen-defs.h --=20 2.43.0 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org