From: hch@infradead.org (Christoph Hellwig) Date: Tue, 25 Sep 2018 08:25:08 -0700 Subject: [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines In-Reply-To: References: <2ccc6c0758624dbb22f6fe451a3e476a000108ef.1537260207.git.zongbox@gmail.com> <20180921070006.GC8401@infradead.org> Message-ID: <20180925152508.GA24002@infradead.org> To: linux-riscv@lists.infradead.org List-Id: linux-riscv.lists.infradead.org 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.