mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00: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:
parent
be7357a6cc
commit
f33f888d0e
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue