From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Date: Thu, 19 Mar 2015 18:14:33 +0000 Subject: [U-Boot] [PATCH 17/28] armv8/fsl-lsch3: Enable system error aborts In-Reply-To: <1426783559-26610-17-git-send-email-yorksun@freescale.com> References: <1426783559-26610-1-git-send-email-yorksun@freescale.com> <1426783559-26610-17-git-send-email-yorksun@freescale.com> Message-ID: <20150319181433.GH10153@leverpostej> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Mar 19, 2015 at 04:45:48PM +0000, York Sun wrote: > From: Scott Wood > > 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. FYI, if the Linux driver for your UART supports earlycon, that should work since commit 7a9c43bed891d1f8 ("setup: Move unmask of async interrupts after possible earlycon setup"). I hope that SError is masked again prior to entering Linux, as required by the boot protocol? Mark. > Signed-off-by: Scott Wood > --- > 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"); > + > return 0; > } > > -- > 1.7.9.5 > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot >