mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
sparc: Added function that checks if IRQ is on or off
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
This commit is contained in:
committed by
Francois Retief
parent
be7357a6cc
commit
f33f888d0e
@@ -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;
|
||||
|
Reference in New Issue
Block a user