linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Finn Thain <fthain@linux-m68k.org>
Cc: "Christopher M. Riedl" <cmr@linux.ibm.com>,
	Stan Johnson <stanley.johnson.001@protonmail.com>,
	linuxppc-dev@lists.ozlabs.org,
	Riccardo Mottola <riccardo.mottola@libero.it>
Subject: Re: Fwd: Fwd: X stopped working with 5.14 on iBook
Date: Fri, 5 Nov 2021 12:58:01 -0500	[thread overview]
Message-ID: <20211105175801.GO614@gate.crashing.org> (raw)
In-Reply-To: <de4b689-236e-505e-2632-6ce89110a1e9@linux-m68k.org>

On Fri, Nov 05, 2021 at 10:36:18AM +1100, Finn Thain wrote:
> There is no __get_user_asm2_goto in this tree, and __get_user_asm2 already
> has the "=&r" constraint:
> 
> #define __get_user_asm2(x, addr, err)                   \
>         __asm__ __volatile__(                           \
>                 "1:     lwz%X2 %1, %2\n"                        \
>                 "2:     lwz%X2 %L1, %L2\n"              \
>                 "3:\n"                                  \
>                 ".section .fixup,\"ax\"\n"              \
>                 "4:     li %0,%3\n"                     \
>                 "       li %1,0\n"                      \
>                 "       li %1+1,0\n"                    \
>                 "       b 3b\n"                         \
>                 ".previous\n"                           \
>                 EX_TABLE(1b, 4b)                        \
>                 EX_TABLE(2b, 4b)                        \
>                 : "=r" (err), "=&r" (x)                 \
>                 : "m" (*addr), "i" (-EFAULT), "0" (err)) 

operand 0 needs an earlyclobber as well, in principle.  But there is
nothing left it can be tied to, so this won't change generated code.

What is operand 4 about?  It isn't used?

The "%1+1" can be written %L1 btw (it means exactly the same thing, but
work on more configs).


Segher

  parent reply	other threads:[~2021-11-05 17:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6919111c-02fa-c6b9-bb05-04161e52f340@yahoo.com>
     [not found] ` <27ad38f3-c1a8-ac5c-8467-f311b5882a00@yahoo.com>
2021-10-22 18:40   ` Fwd: Fwd: X stopped working with 5.14 on iBook Christophe Leroy
2021-11-02  2:20     ` Finn Thain
2021-11-02 22:27       ` Christopher M. Riedl
2021-11-02 22:45         ` Riccardo Mottola
2021-11-04 18:30         ` Stanley Johnson
2021-11-04 16:40       ` Christophe Leroy
2021-11-04 18:49         ` Stanley Johnson
2021-11-04 23:36         ` Finn Thain
2021-11-05 17:27           ` Christophe Leroy
2021-11-06  1:22             ` Stanley Johnson
2021-11-05 17:58           ` Segher Boessenkool [this message]
     [not found]     ` <48c3ed15-2ecf-cc12-c287-2b61457f5fb__21333.0969143257$1635819996$gmane$org@nippy.intranet>
2021-11-03  8:51       ` Andreas Schwab
2021-11-03 22:26         ` Finn Thain
2021-11-03 22:55           ` Andreas Schwab
2021-11-04  2:00           ` Stanley Johnson
2021-11-04  9:01             ` Andreas Schwab

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=20211105175801.GO614@gate.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=cmr@linux.ibm.com \
    --cc=fthain@linux-m68k.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=riccardo.mottola@libero.it \
    --cc=stanley.johnson.001@protonmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).