mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-03 11:23:22 +09:00
ppc4xx: fix UIC external_interrupt hang on UIC0
This patch fixes a UIC external_interrupt hang if critical or non-critical interrupt is set at the same time as a normal interrupt is set on UIC0. Signed-off-by: Victor Gallardo <vgallardo@amcc.com> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
04737d5ffd
commit
5bc542a593
@ -129,11 +129,11 @@ void external_interrupt(struct pt_regs *regs)
|
|||||||
uic_interrupt(UIC3_DCR_BASE, 96);
|
uic_interrupt(UIC3_DCR_BASE, 96);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
mtdcr(uic0sr, (uic_msr & UICB0_ALL));
|
||||||
|
|
||||||
if (uic_msr & ~(UICB0_ALL))
|
if (uic_msr & ~(UICB0_ALL))
|
||||||
uic_interrupt(UIC0_DCR_BASE, 0);
|
uic_interrupt(UIC0_DCR_BASE, 0);
|
||||||
|
|
||||||
mtdcr(uic0sr, uic_msr);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user