From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 4DAFE3858D37 for ; Tue, 19 Mar 2024 21:42:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4DAFE3858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4DAFE3858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710884574; cv=none; b=JX0/SqK3VV+YZ2D1BBJVkbonqike5YruR1uI+hU89j0G3rkGZAXHLoY5cQQfr9U/KAsheMOUspsyesTTl7awBMGmlUinJByqp4Fgz7bxXuZ8TmE//kJnX1GppNcYEbiJyA/HbvrgtbVyG+EvnAYKoz5B9weMzje9JwpIkzeeyXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710884574; c=relaxed/simple; bh=/7bRT4p9VWRJEKD88y2Oxd8JLzdyBGn07wYEeE9lQKo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=orcAsUVnG5++zclHz36G0QewEhjIv8WU2ZBbslkOC/yvPUA0SUbkRnU73fCcIlGSpLluIA/ALD1i5nYHIVjAnJRavqduzhT0oRYh81WeQfqxnWD0X5g39J9GyROrvJgKZMj2QllOHgEYAOiAQXhZhrVBh01uxgWCgw4MWx9EthY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4140efa16caso21158065e9.0 for ; Tue, 19 Mar 2024 14:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710884571; x=1711489371; darn=sourceware.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=GqWDFOie7mX3TwU3LgIVX+4d9y6x5nENIVyjPNwgDWE=; b=LTRI8mwSgGIuXfQdkojCE8Nr8il4VweepW6p3WFjf+io80vZSKrNLDIjOOmZeitQ3d CsqKCfzGvfaPvKv5g3jLB6g8hTidAJjW9tDaTzpadxbgZFXn1l4huzsIrC6ok0ZbGVYv P+76eukxcO2iIyw9f5lVqA6uOq0565sYP7I1UQnnfCt9TkCcax86vB54b9DakEB7yWub mkFFLAYpOhUBF3vJPKq0IAEOP56DartR1I8xtCpCtFSWrhVxk+ZY8zM9qA2D+30TVuXy TKvjdgrBATjQ0i+wzGE8KD1r5vZ6sKPS72/Xbp0Mk0aucF+WNbPTX1lcU8YN+1mQYJmi nrRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710884571; x=1711489371; 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=GqWDFOie7mX3TwU3LgIVX+4d9y6x5nENIVyjPNwgDWE=; b=GyH2A/wFAA2tgCE8RbJWfl1OHzG2LJFQn5mkdU7jEEx5wreY3Ckx4l5qJfKhAU8zCf PXXz2Q7jBZS9thLFMlV0aIOhSJnNoYXRFrZ87eUN83ZIqUdlL0MqI9YINhtqCGEat/l9 KEbrCE+c4NSnBwTyeukfzvqxfprN524xO98jeWxh6i1hG0rQe6qvMgDq5WDdsreeVBxF mpSA0kWWUATF3CQVoz4HTdoLMmgtjnrNj8KlCk2yQWE1VHcsDe0ygpxDROUch597PKQq ulfsq0mfXWvByU7huXbdZi3crB6w8VUwixAAJYN0jaECNqhUfinUeagIwVHVIaiW1r8h qaPw== X-Gm-Message-State: AOJu0YynyG56F+wFdd07PS4Oho/26d+w82q5RXgtpskAhjmiKB3XEqnD 9+fUlYlxrSYnl3xAMZBloGxRQ/6kI0hxhHAFp2l41oiDFJM3pJ1fMdwJVcct X-Google-Smtp-Source: AGHT+IHM/bU0zuvq5hRuUkX7y0CmYCNwQ1HowV1Uk8fNUKD9TUZR34vbmkXMEl/HTZGJrK7cDY9qNw== X-Received: by 2002:a05:600c:2242:b0:414:a49:131a with SMTP id a2-20020a05600c224200b004140a49131amr7538290wmm.23.1710884571191; Tue, 19 Mar 2024 14:42:51 -0700 (PDT) Received: from localhost (cpc1-brnt4-2-0-cust862.4-2.cable.virginm.net. [86.9.131.95]) by smtp.gmail.com with ESMTPSA id s10-20020a05600c45ca00b0041401eb021asm92763wmo.24.2024.03.19.14.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 14:42:49 -0700 (PDT) From: Stafford Horne To: GLIBC patches Cc: Linux OpenRISC , Stafford Horne Subject: [PATCH 1/4] or1k: Fix Linux user space signal ABI Date: Tue, 19 Mar 2024 21:42:41 +0000 Message-ID: <20240319214244.736981-2-shorne@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240319214244.736981-1-shorne@gmail.com> References: <20240319214244.736981-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The OpenRISC sigcontext structure has always been defined as: struct user_regs_struct { /* GPR R0-R31... */ unsigned long gpr[32]; unsigned long pc; unsigned long sr; }; struct sigcontext { struct user_regs_struct regs; /* needs to be first */ unsigned long oldmask; /* unused */ }; With Linux v6.8 we added FPU support and repurposed the oldmask to use for the FPCSR (floating point control status register). struct sigcontext { struct user_regs_struct regs; /* needs to be first */ union { unsigned long fpcsr; unsigned long oldmask; /* unused */ }; }; The definition of mcontext_t was always missing the extra space for oldmask. This patch adds the field __fpcsr to mcontext_t to fix the ABI mismatch between glibc and Linux. --- sysdeps/unix/sysv/linux/or1k/sys/ucontext.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/unix/sysv/linux/or1k/sys/ucontext.h b/sysdeps/unix/sysv/linux/or1k/sys/ucontext.h index b17e919154..1b428592ee 100644 --- a/sysdeps/unix/sysv/linux/or1k/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/or1k/sys/ucontext.h @@ -38,6 +38,7 @@ typedef struct unsigned long int __gprs[__NGREG]; unsigned long int __pc; unsigned long int __sr; + unsigned long int __fpcsr; } mcontext_t; /* Userlevel context. */ -- 2.44.0