From: Hans Lermen <lermen@elserv.ffm.fgan.de>
Subject: Re: Linux-2.1.4..
Date: Tue, 15 Oct 1996 23:15:11 +0200 (MET DST) [thread overview]
Message-ID: <ad83c40ea6cf80cf6e51d6bde14cb46a.axp-list@archive.invalid> (raw)
In-Reply-To: <199610151841.UAA03107@toyland.ping.de>
On Tue, 15 Oct 1996, Michael Stiller wrote:
> {standard input}:80: Error: register does not match opcode suffix
> ---
> The offending code looks like: (snippet from info.S)
>
which is the macro __copy_user(to,from,size) in include/asm-i386/segment.h
> #APP
> movl $3f,%edx
> incl 984(%eax)
> rep; movsl
> testb $2,%bp
> ^^^^^
^^^
The original instruction is
"testb $2,%b3\n\t"
^^^
This wants the low-byte register of eax, ... ,edx, == al, .. , dl.
unfortunately GCC selected 'ebp', which doesn't have it.
> The ^marked^ Mnemonics should be word-wide i.e. testw i guess.
^^^^^
no, testb is correct, %bp isn't.
> What ist wrong here ?
The constraints are wrong:
:"=d" (size) \
:"c" (size >> 2), "m" (current->tss.ex), "r" (size & 3), \
^^^
This is _any_ general purpose register.
The correct constraints should be:
:"=d" (size) \
:"c" (size >> 2), "m" (current->tss.ex), "a,b" (size & 3), \
^^^
Hans
<lermen@fgan.de>
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next prev parent reply other threads:[~1996-10-15 21:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-15 18:41 Linux-2.1.4 Michael Stiller
1996-10-15 21:15 ` Hans Lermen [this message]
[not found] <Pine.LNX.3.91.961018075100.23966E-100000@linux.cs.Helsinki.FI>
1996-10-18 7:34 ` Linux-2.1.4 Richard Henderson
[not found] <Pine.LNX.3.95.961017232056.6666A-100000@odin.asgard.hr>
1996-10-17 22:03 ` Linux-2.1.4 Richard Henderson
1996-10-18 5:16 ` Linux-2.1.4 Linus Torvalds
[not found] <Pine.LNX.3.93.961017124005.6940C-100000@pc5829.hil.siemens.at>
1996-10-17 20:26 ` Linux-2.1.4 Richard Henderson
[not found] <Pine.LNX.3.91.961017130736.25546C-100000@linux.cs.Helsinki.FI>
1996-10-17 11:52 ` Linux-2.1.4 Ingo Molnar
1996-10-17 14:00 ` Linux-2.1.4 Linus Torvalds
-- strict thread matches above, loose matches on Subject: below --
1996-10-17 10:31 Linux-2.1.4 David A Rusling
[not found] <Pine.LNX.3.93.961017104701.8482A-100000@pc5829.hil.siemens.at>
1996-10-17 10:18 ` Linux-2.1.4 Linus Torvalds
1996-10-17 10:03 Linux-2.1.4 David A Rusling
[not found] <Pine.LNX.3.91.961017082647.20618H-100000@linux.cs.Helsinki.FI>
1996-10-17 10:00 ` Linux-2.1.4 Ingo Molnar
[not found] <199610171003.KAA00502@linux.reo.dec.com>
1996-10-17 9:03 ` Linux-2.1.4 Linus Torvalds
[not found] <Pine.LNX.3.93.961016194825.19685A-100000@pc5829.hil.siemens.at>
1996-10-17 6:06 ` Linux-2.1.4 Linus Torvalds
[not found] <Pine.LNX.3.91.961016101122.19371J-100000@linux.cs.Helsinki.FI>
1996-10-16 17:20 ` Linux-2.1.4 Theodore Y. Ts'o
1996-10-16 18:58 ` Linux-2.1.4 Ingo Molnar
1996-10-17 4:51 ` Linux-2.1.4 Linus Torvalds
1996-10-17 3:42 ` Linux-2.1.4 Marc Singer
1996-10-17 12:39 ` Linux-2.1.4 Jim Nance
[not found] <9610160531.AA04330@feral.com>
1996-10-16 7:18 ` Linux-2.1.4 Linus Torvalds
[not found] <Pine.LNX.3.95.961015224149.4897A-100000@hlermen.ffm.fgan.de>
1996-10-15 21:56 ` Linux-2.1.4 Hans Lermen
[not found] <Pine.LNX.3.91.961010180237.1289A-100000@linux.cs.Helsinki.FI>
1996-10-15 17:14 ` Linux-2.1.4 Linus Torvalds
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox