Message ID | 1426904912-29186-18-git-send-email-yorksun@freescale.com |
---|---|
State | Deferred |
Delegated to: | York Sun |
Headers | show |
On 03/20/2015 07:28 PM, York Sun wrote: > From: Scott Wood <scottwood@freescale.com> > > This lets us see the problems (close to) when they happen, > rather than Linux hanging when it enables them prior to having a > working console. > > Signed-off-by: Scott Wood <scottwood@freescale.com> > Signed-off-by: York Sun <yorksun@freescale.com> > --- > > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v2: None > > arch/arm/cpu/armv8/fsl-lsch3/cpu.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/cpu/armv8/fsl-lsch3/cpu.c b/arch/arm/cpu/armv8/fsl-lsch3/cpu.c > index 07064a3..22b5fb2 100644 > --- a/arch/arm/cpu/armv8/fsl-lsch3/cpu.c > +++ b/arch/arm/cpu/armv8/fsl-lsch3/cpu.c > @@ -263,6 +263,10 @@ int arch_cpu_init(void) > __asm_invalidate_tlb_all(); > early_mmu_setup(); > set_sctlr(get_sctlr() | CR_C); > + > + /* Enable system error aborts */ > + asm volatile("msr daifclr, #4" : : : "memory"); > + I should have dropped this patch according to Scott's comment. York
diff --git a/arch/arm/cpu/armv8/fsl-lsch3/cpu.c b/arch/arm/cpu/armv8/fsl-lsch3/cpu.c index 07064a3..22b5fb2 100644 --- a/arch/arm/cpu/armv8/fsl-lsch3/cpu.c +++ b/arch/arm/cpu/armv8/fsl-lsch3/cpu.c @@ -263,6 +263,10 @@ int arch_cpu_init(void) __asm_invalidate_tlb_all(); early_mmu_setup(); set_sctlr(get_sctlr() | CR_C); + + /* Enable system error aborts */ + asm volatile("msr daifclr, #4" : : : "memory"); + return 0; }