From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH 00/28] nios2 Linux kernel port Date: Sun, 20 Apr 2014 22:31:34 -0700 Message-ID: <5354AD36.5090809@zytor.com> References: <1397824031-4892-1-git-send-email-lftan@altera.com> <53518FAC.8020504@zytor.com> <201404191730.54400.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-doc-owner@vger.kernel.org To: Ley Foon Tan , Arnd Bergmann Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, cltang@codesourcery.com List-Id: linux-arch.vger.kernel.org On 04/20/2014 10:23 PM, Ley Foon Tan wrote: > On Sat, Apr 19, 2014 at 11:30 PM, Arnd Bergmann wrote: >> On Friday 18 April 2014, H. Peter Anvin wrote: >>> Did the generic headers ever get updated to match Linus' guidance that >>> any new architecture ports should use a 64-bit time_t? >> >> No, unfortunately not. With my rule that every architecture that gets >> added needs to clean up asm-generic some more, to make it easier to add >> the next one, we should probably do for nios2. >> >> Arnd > > Can you give me the documentation on this new guidance and point me > any architecture have implemented this? > Thanks. > We implemented it in the x32 ABI for x86. In generic code this is keyed by COMPAT_USE_64BIT_TIME, but in your case it isn't actually a matter of compat, so it should be easier. See this thread including the discussion about time_t: https://lkml.org/lkml/2011/8/26/415 -hpa From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from terminus.zytor.com ([198.137.202.10]:35059 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751686AbaDUFb4 (ORCPT ); Mon, 21 Apr 2014 01:31:56 -0400 Message-ID: <5354AD36.5090809@zytor.com> Date: Sun, 20 Apr 2014 22:31:34 -0700 From: "H. Peter Anvin" MIME-Version: 1.0 Subject: Re: [PATCH 00/28] nios2 Linux kernel port References: <1397824031-4892-1-git-send-email-lftan@altera.com> <53518FAC.8020504@zytor.com> <201404191730.54400.arnd@arndb.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Ley Foon Tan , Arnd Bergmann Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, cltang@codesourcery.com Message-ID: <20140421053134.nKLUAz3__D5EhuJz_I5FMXFYHUdEdF7SI-cZahP8_aE@z> On 04/20/2014 10:23 PM, Ley Foon Tan wrote: > On Sat, Apr 19, 2014 at 11:30 PM, Arnd Bergmann wrote: >> On Friday 18 April 2014, H. Peter Anvin wrote: >>> Did the generic headers ever get updated to match Linus' guidance that >>> any new architecture ports should use a 64-bit time_t? >> >> No, unfortunately not. With my rule that every architecture that gets >> added needs to clean up asm-generic some more, to make it easier to add >> the next one, we should probably do for nios2. >> >> Arnd > > Can you give me the documentation on this new guidance and point me > any architecture have implemented this? > Thanks. > We implemented it in the x32 ABI for x86. In generic code this is keyed by COMPAT_USE_64BIT_TIME, but in your case it isn't actually a matter of compat, so it should be easier. See this thread including the discussion about time_t: https://lkml.org/lkml/2011/8/26/415 -hpa