Re: Interrupt handling in multi-processor environment
Re: Interrupt handling in multi-processor environment
- Subject: Re: Interrupt handling in multi-processor environment
- From: "Rob Cas" <email@hidden>
- Date: Tue, 18 Nov 2008 10:23:00 +1100
Thanks Terry,
One further question:
When the sti/cli instruction is executed by
IOSimpleLockLockDisableInterrupts(), does it somehow have the effect
of disabling interrupts across all CPUs (or specifically the
'interrupt handling CPU'), or just on the CPU executing the code?
ie. If we're using IOSimpleLockLockDisableInterrupts(), do we need to
somehow make sure we call it while we're running on the 'interrupt
handling CPU' to ensure it has the desired effect?
Regards,
Rob.
On Tue, Nov 18, 2008 at 5:17 AM, Terry Lambert <email@hidden> wrote:
> Interrupts are all routed to a single CPU. Disable them sparingly, and if
> possible, restructure your code so you don't need to disable them at all.
>
> -- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden