mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-01-25 11:25:17 +00:00
ppc/85xx: Disable all async interrupt sources when we boot
We should make sure to clear MSR[ME, CE, DE] when we boot an OS image since we have changed the exception vectors and the OSes vectors might not be setup we should avoid async interrupts at all costs. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
002ebefddc
commit
f8d7b56e00
1 changed files with 11 additions and 0 deletions
|
@ -364,5 +364,16 @@ extern void setup_ivors(void);
|
|||
|
||||
void arch_preboot_os(void)
|
||||
{
|
||||
u32 msr;
|
||||
|
||||
/*
|
||||
* We are changing interrupt offsets and are about to boot the OS so
|
||||
* we need to make sure we disable all async interrupts. EE is already
|
||||
* disabled by the time we get called.
|
||||
*/
|
||||
msr = mfmsr();
|
||||
msr &= ~(MSR_ME|MSR_CE|MSR_DE);
|
||||
mtmsr(msr);
|
||||
|
||||
setup_ivors();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue