TO RESET: arm64: enable interrupt on panic
Change-Id: I1ceb321de324f307fc82366b162c72f64184247b
This commit is contained in:
@@ -22,12 +22,18 @@ void panic(const char *msg)
|
||||
|
||||
arch_print_stack();
|
||||
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
/* do not assume anything after this is executed */
|
||||
arch_cpu_stop();
|
||||
|
||||
while (1) {
|
||||
cpu_halt();
|
||||
}
|
||||
#else
|
||||
while (1) {
|
||||
cpu_halt_panic();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
extern void arch_show_interrupt_context(const void*);
|
||||
|
||||
@@ -24,6 +24,9 @@ extern int num_processors;
|
||||
void cpu_enable_interrupt(void);
|
||||
void cpu_disable_interrupt(void);
|
||||
void cpu_halt(void);
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
void cpu_halt_panic(void);
|
||||
#endif
|
||||
void cpu_safe_halt(void);
|
||||
void cpu_restore_interrupt(unsigned long);
|
||||
void cpu_pause(void);
|
||||
|
||||
Reference in New Issue
Block a user