diff options
Diffstat (limited to 'arch/sparc/lib/interrupts.c')
-rw-r--r-- | arch/sparc/lib/interrupts.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sparc/lib/interrupts.c b/arch/sparc/lib/interrupts.c index b7c3993619..b8f2efb303 100644 --- a/arch/sparc/lib/interrupts.c +++ b/arch/sparc/lib/interrupts.c @@ -47,6 +47,13 @@ int disable_interrupts(void) return intLock(); } +int interrupt_is_enabled(void) +{ + if (get_pil() == 15) + return 0; + return 1; +} + int interrupt_init(void) { int ret; |