Re: Strange interrupt behaviour

Perry Harrington (pedward@sun4.apsoft.com)
Sun, 12 Jul 1998 14:05:35 -0700 (PDT)


After looking at "do_switch", I had a question:

Is do_switch SMP safe??? I don't see any locking
or coherency checking done here.

> __typeof__ (x) __tmp = x; \
> x = y; y = __tmp; } while (0)
>
> +void memswap(char *a, char *b, int len)
> +{
> + while (len-- > 0) {
> + do_switch(*a, *b);
> + a++;
> + b++;
> + }
> +}

--Perry

-- 
Perry Harrington       Linux rules all OSes.    APSoft      ()
email: perry@apsoft.com 			Think Blue. /\

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html