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

Bug#654630: Please review this diff for atomic ops in mesa on m68k



On Tue, Jan 10, 2012 at 20:09, Thorsten Glaser <tg@mirbsd.de> wrote:
>>CAS is a read-modify-write instruction, which is not guaranteed to work
>>on all m68k platforms (hence the existence of CONFIG_RMW_INSNS in
>>the kernel).
>
> All platforms currently supported by Debian (that is, not Coldfire and
> with MMU) should have it, right? I think otherwise the cmpxchg syscall
> can be used, but, as I haven’t seen an example of it in use, I’ve not
> felt like experimenting.

It's not a CPU issue, but a bus/platform issue.

That's why we have the syscall, which is always safe to use.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds



Reply to: