Skip to content
Snippets Groups Projects
Commit 68e99e54 authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: Disabling interrupt should return 1 if was enabled


Microblaze implement enable/disable interrupts through MSR
that's why disable_interrupts function should return 1 when interrupt
was enabled. Return 0 when interrupt was disabled.

Signed-off-by: default avatarJohn Linn <john.linn@xilinx.com>
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
Acked-by: default avatarWolfgang Denk <wd@denx.de>
parent 89c95f0c
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,11 @@ void enable_interrupts (void)
int disable_interrupts (void)
{
unsigned int msr;
MFS(msr, rmsr);
MSRCLR(0x2);
return 0;
return (msr & 0x2) != 0;
}
#ifdef CONFIG_SYS_INTC_0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment