Re: Please review this diff for atomic ops in mesa on m68k
On Tue, Jan 10, 2012 at 09:56, Thorsten Glaser <tg@mirbsd.de> wrote:
> mesa FTBFS on m68k due to lack of GCC atomic intrinsics. (Why are
> they (still) missing, anyway?) I’ve had a look at other patches
Perhaps Andreas knows?
> floating around on this mailing list and drafted the attached diff
> which makes it at least compile again. My knowledge is not enough
> to validate that this DTRT, especially where multi-threaded pro‐
> gramming is involved, so please look it over.
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).
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: