Skip to contentSkip to conversation

__put_user_size generates invalid asm

DISCUSSION Andreas Schwab 1 participant 1 message Nov 10, 2005

lore
Share & tools
lore
#0 lore raw

The macro __put_user_size in <asm/uaccess.h> can generate invalid assembler code. The problem is that the %P1 operand can expand to a register, but the stX insn does not allow a register as increment. This happens for example when compiling the rme96xx module with gcc 4.1.

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."