* Kernel ll/sc emulation?
[not found] ` <1025574717.30577.48.camel@ghostwheel.cygnus.com>
@ 2002-07-02 2:24 ` H. J. Lu
2002-07-02 16:24 ` Maciej W. Rozycki
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: H. J. Lu @ 2002-07-02 2:24 UTC (permalink / raw)
To: Eric Christopher; +Cc: bkoz, linux-mips
On Mon, Jul 01, 2002 at 06:51:57PM -0700, Eric Christopher wrote:
>
> > What do you meant by "it'll be emulated if it fails"? I didn't see any
> > ll/sc emulation in the Linux mips kernel. If you use ll/sc on CPU which
> > doesn't implement ll/sc, your binary will just dump core.
>
> The kernel should trap and emulate the instruction at that point, at
> least as far as I've been told.
>
That is a news to me. I couldn't find it anywhere in the Linux mips
kernel. Could someone point me to the right place in the Linux mips
kernel source tree?
Thanks.
H.J.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Kernel ll/sc emulation?
2002-07-02 2:24 ` Kernel ll/sc emulation? H. J. Lu
@ 2002-07-02 16:24 ` Maciej W. Rozycki
2002-07-02 16:31 ` H. J. Lu
2002-07-02 16:33 ` Thiemo Seufer
2002-07-02 18:58 ` Daniel Jacobowitz
2 siblings, 1 reply; 6+ messages in thread
From: Maciej W. Rozycki @ 2002-07-02 16:24 UTC (permalink / raw)
To: H. J. Lu; +Cc: Eric Christopher, bkoz, linux-mips
On Mon, 1 Jul 2002, H. J. Lu wrote:
> That is a news to me. I couldn't find it anywhere in the Linux mips
> kernel. Could someone point me to the right place in the Linux mips
> kernel source tree?
See do_ri() in arch/mips/kernel/traps.c.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Kernel ll/sc emulation?
2002-07-02 16:24 ` Maciej W. Rozycki
@ 2002-07-02 16:31 ` H. J. Lu
0 siblings, 0 replies; 6+ messages in thread
From: H. J. Lu @ 2002-07-02 16:31 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Eric Christopher, bkoz, linux-mips
On Tue, Jul 02, 2002 at 06:24:40PM +0200, Maciej W. Rozycki wrote:
> On Mon, 1 Jul 2002, H. J. Lu wrote:
>
> > That is a news to me. I couldn't find it anywhere in the Linux mips
> > kernel. Could someone point me to the right place in the Linux mips
> > kernel source tree?
>
> See do_ri() in arch/mips/kernel/traps.c.
>
Great. What is the first working ll/sc emulation kernel version?
H.J.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Kernel ll/sc emulation?
2002-07-02 2:24 ` Kernel ll/sc emulation? H. J. Lu
2002-07-02 16:24 ` Maciej W. Rozycki
@ 2002-07-02 16:33 ` Thiemo Seufer
2002-07-02 18:58 ` Daniel Jacobowitz
2 siblings, 0 replies; 6+ messages in thread
From: Thiemo Seufer @ 2002-07-02 16:33 UTC (permalink / raw)
To: H. J. Lu; +Cc: Eric Christopher, bkoz, linux-mips
H. J. Lu wrote:
> On Mon, Jul 01, 2002 at 06:51:57PM -0700, Eric Christopher wrote:
> >
> > > What do you meant by "it'll be emulated if it fails"? I didn't see any
> > > ll/sc emulation in the Linux mips kernel. If you use ll/sc on CPU which
> > > doesn't implement ll/sc, your binary will just dump core.
> >
> > The kernel should trap and emulate the instruction at that point, at
> > least as far as I've been told.
> >
>
> That is a news to me. I couldn't find it anywhere in the Linux mips
> kernel. Could someone point me to the right place in the Linux mips
> kernel source tree?
grep -rI LLSC arch/mips/kernel
HTH,
Thiemo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Kernel ll/sc emulation?
2002-07-02 2:24 ` Kernel ll/sc emulation? H. J. Lu
2002-07-02 16:24 ` Maciej W. Rozycki
2002-07-02 16:33 ` Thiemo Seufer
@ 2002-07-02 18:58 ` Daniel Jacobowitz
2002-07-02 20:08 ` Ralf Baechle
2 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2002-07-02 18:58 UTC (permalink / raw)
To: H. J. Lu; +Cc: Eric Christopher, bkoz, linux-mips
On Mon, Jul 01, 2002 at 07:24:15PM -0700, H. J. Lu wrote:
> On Mon, Jul 01, 2002 at 06:51:57PM -0700, Eric Christopher wrote:
> >
> > > What do you meant by "it'll be emulated if it fails"? I didn't see any
> > > ll/sc emulation in the Linux mips kernel. If you use ll/sc on CPU which
> > > doesn't implement ll/sc, your binary will just dump core.
> >
> > The kernel should trap and emulate the instruction at that point, at
> > least as far as I've been told.
> >
>
> That is a news to me. I couldn't find it anywhere in the Linux mips
> kernel. Could someone point me to the right place in the Linux mips
> kernel source tree?
Early 2.4; after 2.4.2 but before 2.4.9 or so.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Kernel ll/sc emulation?
2002-07-02 18:58 ` Daniel Jacobowitz
@ 2002-07-02 20:08 ` Ralf Baechle
0 siblings, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2002-07-02 20:08 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: H. J. Lu, Eric Christopher, bkoz, linux-mips
On Tue, Jul 02, 2002 at 02:58:48PM -0400, Daniel Jacobowitz wrote:
> Early 2.4; after 2.4.2 but before 2.4.9 or so.
The code is actually there quite a bit longer but by then it finally
got fixed ...
Ralf
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-07-02 20:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20020701110145.A27314@lucon.org>
[not found] ` <1025548213.1438.7.camel@ghostwheel.cygnus.com>
[not found] ` <20020701122313.35d7dd56.bkoz@redhat.com>
[not found] ` <1025562305.28484.1.camel@ghostwheel.cygnus.com>
[not found] ` <20020701153438.A31602@lucon.org>
[not found] ` <1025568244.30577.16.camel@ghostwheel.cygnus.com>
[not found] ` <20020701182418.A1600@lucon.org>
[not found] ` <1025574335.30581.44.camel@ghostwheel.cygnus.com>
[not found] ` <20020701185158.A2134@lucon.org>
[not found] ` <1025574717.30577.48.camel@ghostwheel.cygnus.com>
2002-07-02 2:24 ` Kernel ll/sc emulation? H. J. Lu
2002-07-02 16:24 ` Maciej W. Rozycki
2002-07-02 16:31 ` H. J. Lu
2002-07-02 16:33 ` Thiemo Seufer
2002-07-02 18:58 ` Daniel Jacobowitz
2002-07-02 20:08 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox