[parisc-linux] re: new cd-images any time soon?

John Marvin jsm@udlkern.fc.hp.com
Thu, 25 Oct 2001 07:25:10 -0600 (MDT)


>
> Albert & group,
>
> I have not given up on the "loop on LDCW" problem you have found, but...
>
> It is not likely that I will have the changes ready in time for the next iso.
>
> I do have the LDCW target word being put into .o files with proper alignment,
> with or without initialization.
> I DO NOT have the change cleanly intigrated into the source.
>
> Mike

Mike,

We already use an align attribute for the lock word, so the lock word is
automatically aligned properly for global and static storage.  So the
proper alignment for global and static values should already be the case
for .o files.  The problem is that the compiler ignores the align
attribute for automatic storage (i.e. values on the stack). The only
time I saw problems after the kernel was fixed is when a ldcw was done
on a non properly aligned lockword on the stack.

Alan Modra has produced a gcc patch that should fix the problem for
automatic storage.  I'm not sure what the status of getting that patch
into the distribution is.  I sent the patch to Randolph Chung with the
hope that he could at least test the patch to make sure that it didn't
break glibc.  Once gcc is patched, a new glibc needs to be built with it,
and we have only recently made significant progress towards that goal
due to a variety of recent bug fixes.

So anyway, it is possible that the fix will be in the 0.9.3 iso, but it
is not guaranteed. The good news is that we do have a known fix, and
it is the most desirable solution of the various ones I proposed.

John Marvin
jsm@fc.hp.com