Messages in this thread | | | Date | Fri, 26 Nov 1999 12:34:24 +0100 | From | Jamie Lokier <> | Subject | Re: [patch] smp-2.3.30-A1, mb(), wmb(), rmb() |
| |
Linus Torvalds wrote: > #define mb() do { \ > int __dummy; \ > asm volatile("movl %%eax,%0":"=m" (&dummy): :"memory"); \ > } while (0)
Possible tweak: Use %ebp instead of %eax because %ebp isn't written as often therefore the mb() instruction can sometimes retire sooner...
-- Jamie
- 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.tux.org/lkml/
| |