diff options
-rw-r--r-- | arch/sparc/include/asm/irqflags_64.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/irqflags_64.h b/arch/sparc/include/asm/irqflags_64.h index a16e94c4b149..bfa1ea45b4cd 100644 --- a/arch/sparc/include/asm/irqflags_64.h +++ b/arch/sparc/include/asm/irqflags_64.h | |||
@@ -80,6 +80,13 @@ static inline unsigned long __raw_local_irq_save(void) | |||
80 | 80 | ||
81 | /* Disable interrupts to PIL_NORMAL_MAX unless we already | 81 | /* Disable interrupts to PIL_NORMAL_MAX unless we already |
82 | * are using PIL_NMI, in which case PIL_NMI is retained. | 82 | * are using PIL_NMI, in which case PIL_NMI is retained. |
83 | * | ||
84 | * The only values we ever program into the %pil are 0, | ||
85 | * PIL_NORMAL_MAX and PIL_NMI. | ||
86 | * | ||
87 | * Since PIL_NMI is the largest %pil value and all bits are | ||
88 | * set in it (0xf), it doesn't matter what PIL_NORMAL_MAX | ||
89 | * actually is. | ||
83 | */ | 90 | */ |
84 | __asm__ __volatile__( | 91 | __asm__ __volatile__( |
85 | "rdpr %%pil, %0\n\t" | 92 | "rdpr %%pil, %0\n\t" |