On Thu, Jan 20, 2000, David Edelsohn [off-list ref] wrote:
The "b" constraint should be associated with "base_addr", not with
"regindex":
asm("stwbrx %0,%1,%2": : "r"(regdata), "r"(regindex), "b"(base_addr));
Hum... I still have to check what gcc/ppc specific constraints are. But
in this specific case, it's the index who should not be assigned to r0.
Both base and regdata can be r0. So either I'm mising something, or the
"b" constraint is actually wrong semanticall, or we need yet-another
constraint for the index.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/