Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16047684ybl; Tue, 31 Dec 2019 20:29:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzprBS4pqNuiGk4ayskNlGJIfEzYdnkAO5yHku05N9ce3jrSVPIxSbqMFTnUIjg+BtCi/dO X-Received: by 2002:a17:906:b212:: with SMTP id p18mr81834489ejz.208.1577852995406; Tue, 31 Dec 2019 20:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577852995; cv=none; d=google.com; s=arc-20160816; b=tbMYnNZcP7pPSutbdnmjj6nH6Y7FFfXR8vQG1JF7ixcq1+d723e+G+8gXKVLB8G0nG 9p8DG3LDCQd//1DNfRc4tyT42zojlkwY6LUgUeS//lMh6oMg/tqrDo6kKiPTdFGwBerF krgpoK4WPSHzXIGwcpSYJXkwHSou98K2B+eLmq/ULVmWZ1DaT4SRwVW1BVrGkjaLXmsz q7bSlwD4JmLBh6fr3Wk/efIqGTYMFMDumiBldTKLN2/lMJ0M5YAq5ANFP0QZVNCMpHxI nVHB+pgAC+EgWCe8BVY5ajLLgUae6GiJqqg6SByfLoL2UtXY9nkZVC3ZWqxFWbMwokQX F7Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=V9nkm+It3GcjzuF9e6uccT0sEAMpb6WhCDjfhadhYK0=; b=FA8FXfwZEfEGfKgQe6SWWdkiZp/Lk19aR5/6CkPm2cInojmdud4JhkwGXFmHIZi6/l Dn+NdE8wKSvq6h8JP9W0R0xW9SIu+olM9iDFemE4WoMxzulZ6LqZOSYsRa3Acd+FDWzR bkB/X2uuLOjeF2c/TFo6QZcjXiR3nMlbFwilr0duZTDddJQotK4yvgFQUCQB10c8UJct FUxixwSn8siSENDhqE3MMvetUh8J938TzQ34iC2/NBQ94bDfDV2rEm92SYlAFCkNsRkV 8/JQE1aeBuZy/tGYRDK0o+mT3AoOdVTQ0dI2lT4oSFGNnneAOxg0YA1F6eb0KUNsNUKg k8fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v13si32985693eds.91.2019.12.31.20.29.20; Tue, 31 Dec 2019 20:29:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727146AbgAAEWt (ORCPT + 99 others); Tue, 31 Dec 2019 23:22:49 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:45100 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727132AbgAAEWt (ORCPT ); Tue, 31 Dec 2019 23:22:49 -0500 Received: by mail-pl1-f193.google.com with SMTP id b22so16461934pls.12; Tue, 31 Dec 2019 20:22:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=V9nkm+It3GcjzuF9e6uccT0sEAMpb6WhCDjfhadhYK0=; b=ApwBGq5u99mk9zXEuQFTDtXQdyonUnJfXC632ilRPXlwigzFpeAShcwEEn8ofeqD/K o4KhBiCxnsmmTA0g0e/38nBL0Lk1cZHQMBXf26WG77HuqYUs0F0/5LYHWWkKEaELTdWf Rf3+S0kJF/AsMLz0AI7t69tWeEKFpw9dqVGCpnHJE4Cx9cVTE+4PFV1wzxJ0e1uphORn CmOk4bBvSIwk5SGzs7Mqe44CaJVTUMGz8J8P8CA8rViTFjs6rM45UV4t/eXzXkFWp2Of RvMfF/nzGzbhQsSA8c9THaG0tz7EYtWs5vzuZkL1OvhjWeK2DphxPYThIxCT8Rh2sYQP nXYQ== X-Gm-Message-State: APjAAAXdVkB/1OXussN1dzG2IkKCwcsJwjpdtFHthVgv1eTa2pON2rqx qfQCBXkpiXRn5yRkd5BVsNY= X-Received: by 2002:a17:902:9890:: with SMTP id s16mr77614042plp.265.1577852568262; Tue, 31 Dec 2019 20:22:48 -0800 (PST) Received: from localhost ([2601:646:8a00:9810:5af3:56d9:f882:39d4]) by smtp.gmail.com with ESMTPSA id o98sm5350992pjb.15.2019.12.31.20.22.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2019 20:22:47 -0800 (PST) Date: Tue, 31 Dec 2019 20:25:00 -0800 From: Paul Burton To: "Jason A. Donenfeld" Cc: Arnd Bergmann , "linux-kernel@vger.kernel.org" , "open list:BROADCOM NVRAM DRIVER" , Vincenzo Frascino , Christian Brauner Subject: Re: [PATCH] mips: vdso: conditionalize 32-bit time functions on COMPAT_32BIT_TIME Message-ID: <20200101042500.zmhldrthr3l45trq@lantea.localdomain> References: <20200101041056.xionott76qbrffih@lantea.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200101041056.xionott76qbrffih@lantea.localdomain> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jason, On Tue, Dec 31, 2019 at 08:10:56PM -0800, Paul Burton wrote: > I'm still not quite sure *why* this happens; perhaps GCC just decides it > doesn't need to save & restore $gp/$28 when it spots that it's being > "used" for __current_thread_info (even though that's never actually > referenced in the VDSO)? Ah: > After defining a global register variable, for the current compilation > unit: > > - If the register is a call-saved register, call ABI is affected: the > register will not be restored in function epilogue sequences after > the variable has been assigned. Therefore, functions cannot safely > return to callers that assume standard ABI. https://gcc.gnu.org/onlinedocs/gcc/Global-Register-Variables.html That makes sense then. What doesn't make sense is how this ever worked. A question for another day... Thanks, Paul