From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Tue, 15 Oct 1996 23:56:53 +0200 (MET DST) From: Hans Lermen Subject: Re: Linux-2.1.4.. In-Reply-To: Ooops, my preveous mail could be missunderstood ... On Tue, 15 Oct 1996, Hans Lermen wrote: > 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 > > 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 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), \ > ^^^ Of course the above should be either :"c" (size >> 2), "m" (current->tss.ex), "a" (size & 3), \ or :"c" (size >> 2), "m" (current->tss.ex), "b" (size & 3), \ The "q" constraint (which means one of a,b,c,d) can't be used, because GCC may also take one of the "d", "c" registers. (don't know if this is a bug) Hans -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null