Thread (8 messages) 8 messages, 3 authors, 2019-08-27

Re: [PATCH 2/2] powerpc: cleanup hw_irq.h

From: Segher Boessenkool <hidden>
Date: 2019-08-27 19:12:19
Also in: lkml

On Tue, Aug 27, 2019 at 08:33:45PM +0200, Christophe Leroy wrote:
quoted
So
  asm("add%I2 %0,%1,%2" : "=r"(dst) : "r"(src1), "ri"(src1));
"ri", not "n" as for wrtee ?
"n" means a number.  "i" means any constant integer.  The difference is
mostly that "n" does not allow relocations.  This probably does not matter
for this asm, not if you call it with correct values anyway.

(If you want to pass other than small numbers here, you need different
constraints; let's not go there).


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help