Re: [PATCH 0/2] jump label: 2.6.38 updates

From: Ingo Molnar
Date: Thu Feb 17 2011 - 07:52:32 EST



* H. Peter Anvin <hpa@xxxxxxxxx> wrote:

> On 02/16/2011 12:35 AM, Ingo Molnar wrote:
> >
> > Just curious: how does this work if there's an interrupt (or NMI) right after the
> > invalidate instruction but before the 'll' instruction? The IRQ/NMI may refill the
> > L1. Or are the two instructions coupled by hw (they form a single instruction in
> > essence) and irqs/NMIs are inhibited inbetween?
> >
>
> http://en.wikipedia.org/wiki/Load-link/store-conditional

Oh, ll/sc, that indeed clicks - i even wrote such assembly code many years ago ;-)

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/