This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Force 64-bit time based syscalls for TIMESIZE==64 on 32-bit arches
- From: Vineet Gupta <Vineet dot Gupta1 at synopsys dot com>
- To: Alistair Francis <alistair23 at gmail dot com>
- Cc: arcml <linux-snps-arc at lists dot infradead dot org>, GNU C Library <libc-alpha at sourceware dot org>, Lukasz Majewski <lukma at denx dot de>, Arnd Bergmann <arnd at arndb dot de>
- Date: Tue, 25 Feb 2020 01:16:17 +0000
- Subject: Re: [PATCH] Force 64-bit time based syscalls for TIMESIZE==64 on 32-bit arches
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synopsys.com; dmarc=pass action=none header.from=synopsys.com; dkim=pass header.d=synopsys.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gwh4U0hrJwPrUu71kdY2t+sPPYu8MxADeTINl6FXXgQ=; b=I+i794ijuAHF0QYf6dvMVyA5DYWHEm4sI9whAkKx4h0/a7+gme3lbISMUZOAbEFIt8kYKvGaalv6sfzsFrX6gmvAxODj5rgMmsVSJdcnt8qyu44VZhOXFfs9QUq05PY6PpfyKwBLGB3bC2w2l6JxIA8mVtBMhh7xbm8+IGYUF8G1aElYKdVayZ9+7sHUutXVo4MgtDjaFATnuzE3huGtJokx9N+lIeeO/DC2cmsN4uYx3YelDGZDTFxUEEi/TipKhT4Y6tBVGdX2T+PUF7IN/Una+yUkyxvaj1ltdrrzb5wjWtZulIAgUIMlw6sYVExO1K9vbAgOXaIdaA1w4huZVQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bQyNYtt/urj6itAPmN6kYMQD24HFjODiUYJcBg07RbK8r295kvJBHUu1gsu2U1gvthBBvDjAujut7sFORiysmu4s14UpN7Z7dwFXwPekIGgnR5wRCZDNn71JxL0dHNG25Ud5J/WULbwL0+gso84eUL5tRpqYotQaglMdoREYrv7nd1yOcFzy3h+JT0wlUXPkvJ07xYU/46nIYxiQJErtx50Cu3ZWhkS8Lq9sd/aOWQoQwAQEHvbpVPZLLdfbRLx6ioTWZT1B3GN+tIHcw+jl2mIk5d+oCXxVA7+BNb6qJQDh1w/GZcAb09G5MZYQT3V7W5EKXOHQLFBwQQHUftoZuA==
- References: <20200224183413.13629-1-vgupta@synopsys.com> <CAKmqyKMLjb3rRh6n02_rL_fuh5cofBViJ7D1kNeD7r3rEYnkTg@mail.gmail.com>
On 2/24/20 4:59 PM, Alistair Francis wrote:
>> +/* Override syscalls for asm-generic ABIs with 64-bit time. */
>> +#if __WORDSIZE == 32 && __TIMESIZE == 64
>> +
>> +# undef __NR_futex
>> +# define __NR_futex __NR_futex_time64
> I think you should do what RV32 does and wrap these in ifndef's
ARC asm-generic ABI is different from the ones newer arches have. For us the these
syscalls already exist and the idea is to replace them with the 64-bit variants
which requires #undef.
-Vineet