[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: XFree 4.0 crashes with SRM



David Huggins-Daines wrote:
> 
> Jeff Sturm <jeff.sturm@appnet.com> writes:
> 
> > Thanks Rich.  I ran XFree86 under gdb (remotely) to get some better
> > data.  It dies with a SIGILL in miIntersect():
> > 
> > 0x120178258 <miIntersect+280>:	maxsw4	t6,t1,t1
> > 
> > That mean anything to anybody?  I'm using SRM V5.6-3, kernel 2.2.14.
> 
> Yup.  SRM on the SX disables the MVI instructions.  Try this patch
> (from Ivan Koshaysky via linux-alpha@vger):
> 
[ patch skipped ]
There was a codycyl to that from Ivan (Kokshaysky, BTW).
You do not need the first change if your binutils are recent enough
and the second one apparently is for a patch version for 2.3 kernels,
so YMMV.

<quote>
Heh. GAS from binutils-2.9.1 doesn't understand 'palXX' mnemonics.

-       "pal19  0x118\n"        /* hw_mfpr $0,icsr */
+       ".long  0x64000118\n"   /* hw_mfpr $0,icsr */

-       "pal1d  0x118\n"        /* hw_mtpr $0,icsr */
+       ".long  0x74000118\n"   /* hw_mtpr $0,icsr */

>    However, when I do 'shutdown -h', weird thing happens: SRM
>    complains
>    about HWRPB being invalid.

I forgot that hwrpb is checksum protected.

        hwrpb->cycle_freq = ((cc1 >> 11) * 100000000UL) / 3;
+       hwrpb_update_checksum(hwrpb);

should fix that.
</quote>

  Michal



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []