All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zong Li <zongbox@gmail.com>
To: schwab@suse.de
Cc: hch@infradead.org, Palmer Dabbelt <palmer@sifive.com>,
	aou@eecs.berkeley.edu, Vincent Chen <vincentc@andestech.com>,
	Zong Li <zong@andestech.com>,
	linux-riscv@lists.infradead.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines
Date: Wed, 26 Sep 2018 15:12:45 +0800	[thread overview]
Message-ID: <CA+ZOyagnA=NRjRH4qWw8FgOTBr1uAvDvK1Pk8MAw8ysQdgdfPA@mail.gmail.com> (raw)
In-Reply-To: <mvmefdicabq.fsf@suse.de>

Andreas Schwab <schwab@suse.de> 於 2018年9月25日 週二 下午3:20寫道:
>
> On Sep 25 2018, Zong Li <zongbox@gmail.com> 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.
>
> You probably should use the macros from <asm/div64.h> instead.

Hi Andreas,

This doesn't work for me, the divisor of my case is also long long type.

WARNING: multiple messages have this Message-ID (diff)
From: zongbox@gmail.com (Zong Li)
To: linux-riscv@lists.infradead.org
Subject: [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines
Date: Wed, 26 Sep 2018 15:12:45 +0800	[thread overview]
Message-ID: <CA+ZOyagnA=NRjRH4qWw8FgOTBr1uAvDvK1Pk8MAw8ysQdgdfPA@mail.gmail.com> (raw)
In-Reply-To: <mvmefdicabq.fsf@suse.de>

Andreas Schwab <schwab@suse.de> ? 2018?9?25? ?? ??3:20???
>
> On Sep 25 2018, Zong Li <zongbox@gmail.com> 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.
>
> You probably should use the macros from <asm/div64.h> instead.

Hi Andreas,

This doesn't work for me, the divisor of my case is also long long type.

WARNING: multiple messages have this Message-ID (diff)
From: Zong Li <zongbox@gmail.com>
To: schwab@suse.de
Cc: Vincent Chen <vincentc@andestech.com>,
	aou@eecs.berkeley.edu, Zong Li <zong@andestech.com>,
	Palmer Dabbelt <palmer@sifive.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	hch@infradead.org, linux-riscv@lists.infradead.org
Subject: Re: [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines
Date: Wed, 26 Sep 2018 15:12:45 +0800	[thread overview]
Message-ID: <CA+ZOyagnA=NRjRH4qWw8FgOTBr1uAvDvK1Pk8MAw8ysQdgdfPA@mail.gmail.com> (raw)
Message-ID: <20180926071245.RkoMpncVtXiExv8kbFFy0tJHE-Cv_cLxJaWhtlDbfoQ@z> (raw)
In-Reply-To: <mvmefdicabq.fsf@suse.de>

Andreas Schwab <schwab@suse.de> 於 2018年9月25日 週二 下午3:20寫道:
>
> On Sep 25 2018, Zong Li <zongbox@gmail.com> 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.
>
> You probably should use the macros from <asm/div64.h> instead.

Hi Andreas,

This doesn't work for me, the divisor of my case is also long long type.

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

  reply	other threads:[~2018-09-26  7:12 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-18  9:19 [PATCH 0/5] Fix some bugs on RV32 build fail and issue Zong Li
2018-09-18  9:19 ` Zong Li
2018-09-18  9:19 ` [PATCH 1/5] RISC-V: Build tishift only on 64-bit Zong Li
2018-09-18  9:19   ` Zong Li
2018-09-21  6:58   ` Christoph Hellwig
2018-09-21  6:58     ` Christoph Hellwig
2018-09-25  2:33     ` Zong Li
2018-09-25  2:33       ` Zong Li
2018-09-25  2:33       ` Zong Li
2018-09-18  9:19 ` [PATCH 2/5] RISC-V: Use swiotlb on RV64 only Zong Li
2018-09-18  9:19   ` Zong Li
2018-09-21  6:59   ` Christoph Hellwig
2018-09-21  6:59     ` Christoph Hellwig
2018-09-18  9:19 ` [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines Zong Li
2018-09-18  9:19   ` Zong Li
2018-09-21  7:00   ` Christoph Hellwig
2018-09-21  7:00     ` Christoph Hellwig
2018-09-25  2:19     ` Zong Li
2018-09-25  2:19       ` Zong Li
2018-09-25  2:19       ` Zong Li
2018-09-25  7:20       ` Andreas Schwab
2018-09-25  7:20         ` Andreas Schwab
2018-09-25  7:20         ` Andreas Schwab
2018-09-26  7:12         ` Zong Li [this message]
2018-09-26  7:12           ` Zong Li
2018-09-26  7:12           ` Zong Li
2018-09-25 15:25       ` Christoph Hellwig
2018-09-25 15:25         ` Christoph Hellwig
2018-09-25 15:25         ` Christoph Hellwig
2018-09-26  2:40         ` Zong Li
2018-09-26  2:40           ` Zong Li
2018-09-26  2:40           ` Zong Li
2018-09-18  9:19 ` [PATCH 4/5] RISC-V: Select GENERIC_LIB_UMODDI3 on RV32 Zong Li
2018-09-18  9:19   ` Zong Li
2018-09-18  9:19 ` [PATCH 5/5] RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap Zong Li
2018-09-18  9:19   ` Zong Li
2018-09-21  7:00   ` Christoph Hellwig
2018-09-21  7:00     ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+ZOyagnA=NRjRH4qWw8FgOTBr1uAvDvK1Pk8MAw8ysQdgdfPA@mail.gmail.com' \
    --to=zongbox@gmail.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@sifive.com \
    --cc=schwab@suse.de \
    --cc=vincentc@andestech.com \
    --cc=zong@andestech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.