/* do_error handles the Error exception. Errors are more likely to be processor specific, it is defined with weak attribute and can be redefined in processor specific code.  */
void __weak do_error(struct pt_regs *pt_regs, unsigned int esr)
/* do_error handles the Error exception. Errors are more likely to be processor specific, it is defined with weak attribute and can be redefined in processor specific code.  */
void __weak do_error(struct pt_regs *pt_regs, unsigned int esr)
{
	efi_restore_gd();
	printf("\"Error\" handler, esr 0x%08x\n", esr);
	show_regs(pt_regs);
	show_efi_loaded_images(pt_regs);
	panic("Resetting CPU ...\n");
}