* 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