TO RESET: arm64: enable interrupt on panic

Change-Id: I1ceb321de324f307fc82366b162c72f64184247b
This commit is contained in:
Masamichi Takagi
2020-06-15 12:55:00 +09:00
parent bbfb296c26
commit 8f2c8791bf
5 changed files with 54 additions and 0 deletions

View File

@@ -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*);

View File

@@ -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);