Skip to contentSkip to conversation

input constraints in atomic.h too loose ?

parisc-linux John David Anglin 1 participant 1 message Feb 10, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines

static void __lll_mutex_lock(int *futex)

{
	int lws_errno = 14; 
	int lws_ret;
	asm (
Quoted 16 lines

"0: \n\t"
"copy %3, %%r26 \n\t"
"copy %4, %%r25 \n\t"
"copy %5, %%r24 \n\t"
"ble " "0xb0" "(%%sr2, %%r0) \n\t"
"ldi " "0" ", %%r20 \n\t"
"cmpib,=,n " "11" ",%%r21,0b \n\t"
"nop \n\t"
"stw %%r28, %0 \n\t"
"sub %%r0, %%r21, %%r21 \n\t"
"stw %%r21, %1 \n\t"
: "=m" (lws_ret), "=m"(lws_errno), "=m"(*futex)
: "r"(futex), "r"(0), "r"(1)
:"r1", "r26", "r25", "r24", "r23", "r22", "r21", "r20", "r28", "r31", "memory" );
}

Aren't lws_errno and lws_ret supposed to be global? As is, they are just local variables and do nothing.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux