Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp206174imm; Tue, 25 Sep 2018 19:40:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV62/sD00m4fpunLbrcxr5WKJf0mIu89Ygai1B0b+EMbDRxMzZl8cv2YuqGTXVAO4Kc3fI+dy X-Received: by 2002:a17:902:be07:: with SMTP id r7-v6mr3668111pls.275.1537929636620; Tue, 25 Sep 2018 19:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537929636; cv=none; d=google.com; s=arc-20160816; b=Zi1wob8fQ5BYuBEoMKCSOscr/bn1YS0HIpk1JGpUxXmGPrW7nN5J8/yKxaE18kOkLj chtbdKOfUJ1snmYYEsJUsoPdZWLr8NY70rtuulmmv498EyfliRtxJkTBONNhIc4DdXHd 8QfuNLuOv2WENJE9wiZNEVzbe3m5K2IkrmqmNWpAhkgw14yXmDWj2d+S4oQFlgIDwW3F GaSRj4msZ9pCrIcVNPqq5/xE8bVx4mhdRaJlGZ04TBMJjf9PumunGmCJR3+QOl7Ig7ju 7AHCEb2FKv7EF7I7CpBA4Uw8qcxbX2nTRyf83jD98cDgDr7BjTC8mXctNFUK+PDedKna Rbzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0fVr6k+0xT4506/HxcrTRvbN4wTmpwhjTq9OkiCSL1A=; b=pW8EvxZgkGAHSx7qR16nR4FrQYM85KUm/fkuMVVOZiPamFdIeR1oFRh9npG1bz7+2G 96lSVTy5xJUqLJIXhc3p2b8gXCBWGklg75fIRnfajXFLsiKQFrQ54MuevbJom/JUk2gf jjyStpChezDHnl9Balb0dA6ukSWdgv6jSZ2AMP1AG86KmmmPmr5wSzpWesJW8+PaqCdk 7tFTeeJ/uG8kxTHFJLfsnD2geC3D+nBwjsAB6iX+mRuLl4SuoweIp50oDGgs446/O+LC R6SzkAfXhUdW/bGPF/ZN5mDSgB4GsiW54XtCHHfANWp6fzaxRfII8bdj0WcM0SGKZSHW 5h8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MR68mwh0; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k23-v6si3770420pgl.633.2018.09.25.19.40.20; Tue, 25 Sep 2018 19:40:36 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MR68mwh0; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726355AbeIZIuv (ORCPT + 99 others); Wed, 26 Sep 2018 04:50:51 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:38513 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbeIZIuv (ORCPT ); Wed, 26 Sep 2018 04:50:51 -0400 Received: by mail-it1-f196.google.com with SMTP id p129-v6so916985ite.3 for ; Tue, 25 Sep 2018 19:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=0fVr6k+0xT4506/HxcrTRvbN4wTmpwhjTq9OkiCSL1A=; b=MR68mwh0YUZFkxd8gEPCYFydwQ84b4XObKx95PYrGuG9DQcuBZCGpOmCCig4cvJNls 0v6J6+ZKMIxDCk0GT859wupnjz/pEaoe5IGBYpwP7+I7l42cQK2cznPNN1tploLku0WY ZQ199kp0OATM7sTB9FYxyY+twF2Yet/6g80DyvEIkb3hlPydasnm/EsmfhJhf9lt77KY CvT0LhCqXcNDsArsMlOiHMcdFOY/XeS9gKgfRhqSMjbNPKS7X2so+v9NpQhT48OoY1mD tkDEuquKMGOOI3dectgJqYMd6vuupqj6jDWuu1900M6273aV/NV6V0TsAIRUkFG54Yjr 4DbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=0fVr6k+0xT4506/HxcrTRvbN4wTmpwhjTq9OkiCSL1A=; b=s3bXRdx+xBAJX41wT9lBrAgb1yFVNjvzq/3WYqy1OvA+YkRETAcTKBtmBx8v6pcrEy Ub8ujwnmPmXNgRgb9LOq2UypC6lf+nLB7UtKftebZv4t3oiefTOvNRVumEyKFqjpr9ox GSHeDqGBahqVQsnbaPSQhQ+Pi3VdVUrPuU+3aC5o3TFiYsLnpb2AFp+fG2NVosLKBpoB Kj1fKMho5XmQeQA2QPLhHn1SxubuiD26M/dbkPMTcSHs6zktU7mDu44uFSRm0n0hh/50 kVTvbAIOeF0CVreLXsO8ttj15kfKBNg0xKv0WJLnZ0EUm0ULimiyJpK3HO8Kv041pkCP B9tg== X-Gm-Message-State: ABuFfoiDysD4HWZlPupTlWFaHr/MnZXFUHb8DSBNiP6Vej2piOdEkR9M UdhTCkvV4gpp48jvGyPwRHAOPP1+PxVPQZQYm3Q= X-Received: by 2002:a24:5214:: with SMTP id d20-v6mr1193105itb.24.1537929614143; Tue, 25 Sep 2018 19:40:14 -0700 (PDT) MIME-Version: 1.0 References: <2ccc6c0758624dbb22f6fe451a3e476a000108ef.1537260207.git.zongbox@gmail.com> <20180921070006.GC8401@infradead.org> <20180925152508.GA24002@infradead.org> In-Reply-To: <20180925152508.GA24002@infradead.org> From: Zong Li Date: Wed, 26 Sep 2018 10:40:02 +0800 Message-ID: Subject: Re: [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines To: hch@infradead.org Cc: Palmer Dabbelt , aou@eecs.berkeley.edu, Vincent Chen , Zong Li , linux-riscv@lists.infradead.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Hellwig =E6=96=BC 2018=E5=B9=B49=E6=9C=8825= =E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=8811:25=E5=AF=AB=E9=81=93=EF= =BC=9A > > On Tue, Sep 25, 2018 at 10:19:55AM +0800, Zong Li wrote: > > The RV32 need the umoddi3 to do modulo when the operands are long long > > type, like other libraries implementation such as ucmpdi2, lshrdi3 and > > so on. I encounter the undefined reference 'umoddi3' when I use the in > > house dma driver, although it is in house driver, but I think that > > umoddi3 is a common function for RV32. The udivmoddi4 and umoddi3 are > > copies from libgcc in gcc. There are other functions use the > > udivmoddi4 in libgcc, so I separate the umoddi3 and udivmoddi4 for > > flexible extension in the future. > > I don't think libgcc is GPLv2 licensed, is it? Also please retain > the copyright notices from libgcc. I will give next version patch. Thanks.