Re: [PATCH 1/2] sparc64: Implement local_irq_save_nmi().

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Tuesday, April 6, 2010 - 11:52 pm

On Tue, 2010-04-06 at 16:39 -0700, David Miller wrote:

Isn't this wrong when used from !NMI context?

Should this thing do something like:

  if (rdpr() < PIL_NORMAL_MAX)
    wrpr(PIL_NORMAL_MAX);

so that it only disables IRQs, but doesn't enable NMIs.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] sparc64: Implement local_irq_save_nmi()., David Miller, (Tue Apr 6, 4:39 pm)
Re: [PATCH 1/2] sparc64: Implement local_irq_save_nmi()., Peter Zijlstra, (Tue Apr 6, 11:52 pm)
Re: [PATCH 1/2] sparc64: Implement local_irq_save_nmi()., Peter Zijlstra, (Wed Apr 7, 12:24 am)