arm64: record register state at kernel mode page fault (for eclair)

Change-Id: I066bceecc0377110faaca0b21d45a476d000e684
This commit is contained in:
Balazs Gerofi
2020-08-12 07:43:45 +09:00
committed by Masamichi Takagi
parent 92902d36fc
commit 623d6f8bc3
3 changed files with 7 additions and 0 deletions

View File

@ -1323,6 +1323,7 @@ static void unhandled_page_fault(struct thread *thread, void *fault_addr,
ihk_mc_debug_show_interrupt_context(regs);
if (!(reason & PF_USER)) {
cpu_local_var(kernel_mode_pf_regs) = regs;
panic("panic: kernel mode PF");
}