From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 49C313943541 for ; Tue, 13 Apr 2021 10:55:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 49C313943541 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vinschen@redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618311315; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=m8PT7zs1lYdcQJ3zLEnf0ivLoCcS0JIHwlVU3FCcuGc=; b=VqO69hj3t+8pyM/p67FivVi2rUopsAGjMCunwZV2w0dghL69H0/oSnO6tEceUFOljRWSMx ygUGmtktI2kwx+ih5iuRU+WPOpYywMpNifBKHYUHVJ7ngsGLjqBUde3Hw/MKtLU2soZbUJ S5EJ3Z9FRBe8ObeECbrQglAq95Vh32k= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-8-Gv1lMdKNP7aPUFqKTG7VQQ-1; Tue, 13 Apr 2021 06:55:13 -0400 X-MC-Unique: Gv1lMdKNP7aPUFqKTG7VQQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9CBCC107ACE3 for ; Tue, 13 Apr 2021 10:55:12 +0000 (UTC) Received: from calimero.vinschen.de (ovpn-112-69.ams2.redhat.com [10.36.112.69]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6F728610A8 for ; Tue, 13 Apr 2021 10:55:12 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 036DBA80EF9; Tue, 13 Apr 2021 12:55:10 +0200 (CEST) Date: Tue, 13 Apr 2021 12:55:10 +0200 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: [PATCH] RISC-V: Using SYS_clock_gettime64 for rv32 libgloss. Message-ID: Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: <20210413093303.96153-1-kito.cheng@sifive.com> MIME-Version: 1.0 In-Reply-To: <20210413093303.96153-1-kito.cheng@sifive.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=vinschen@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2021 10:55:16 -0000 On Apr 13 17:33, Kito Cheng wrote: > - RISC-V 32 bits linux/glibc didn't provide gettimeofday anymore > after upstream, because RV32 didn't have backward compatible issue, > so RV32 only support 64 bits time related system call. > > - So using clock_gettime64 call instead for rv32 libgloss. > --- > libgloss/riscv/machine/syscall.h | 1 + > libgloss/riscv/sys_gettimeofday.c | 21 +++++++++++++++++++++ > 2 files changed, 22 insertions(+) Pushed. Thanks, Corinna