On Tue, 8 Feb 2000, Tomasz Motylewski wrote:
> On Tue, 8 Feb 2000, Andy Waddell wrote:
>
> > Does anybody know how or if it's possible to turn off interrupts for a
> > couple of instructions from a user space app? There's a whole HOWTO
>
> iopl(3);
> __asm__ volatile(
> "cli"
> );
>
> __asm__ volatile(
> "sti"
> );
With an aside that these do cause SMP problems and sometimes timing
problems if you leave them disabled too long.... (cli to disable
interrupts IIRC?)
Check out how linux kernel drivers handle it.... (but that prolly won't
help).
mind you i might be wrong on all of this...
G'day, eh? :)
- Teunis
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.