This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] HPPA Linuxthreads.


> > -  unsigned int val;
> > +	unsigned int *addr = __ldcw_align (lock);
> > +	
> > +	while (__ldcw (addr) == 0)
> > +		while (*addr == 0) ;
> 
> This is plain wrong.  addr at least must be volatile.

I am very wrong. I see your point.

c.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]