linux-origin
[Top] [All Lists]

Re: broken compiler?

To: ralf@xxxxxxxxxxx (Ralf Baechle)
Subject: Re: broken compiler?
From: kanoj@xxxxxxxxxxxxxxxxxxx (Kanoj Sarcar)
Date: Tue, 28 Mar 2000 16:21:56 -0800 (PST)
Cc: linux-origin@xxxxxxxxxxx
In-reply-to: <20000329021730.B11023@xxxxxxxxxxxxxx> from "Ralf Baechle" at Mar 29, 2000 02:17:30 AM
Sender: owner-linux-origin@xxxxxxxxxxx
> 
> On Tue, Mar 28, 2000 at 04:11:04PM -0800, Kanoj Sarcar wrote:
> 
> > Which means, given an arbitrary address (and not the type), you have to do 
> > a lw, and not a ld, to access it. Which pretty much means that all the 
> > bitops routines need to do ll/sc instead of lld/scd. I will try out some
> > changes and see if it helps. (btw, I don't know what bestiality would
> > occur if you did a lld on a non dword aligned addr anyway).
> 
> The kernel would try to send a SIGBUS to the current process.
> 
>   Ralf
> 

Doesn't it also partly depend on the setting of the MF_FIXADE flag?

Anyway, this is not expected behavior, so I am downgrading usage of 
most lld/scd calls to ll/sc unless I can guarantee they are operating
on a 8 byte quantity (which will be dword aligned by definition). I
will checks that in once I test it, I have asked Ulf to see whether
it will help him get to miltiuser too.

Kanoj

<Prev in Thread] Current Thread [Next in Thread>