hv:Merge dump_interrupt and dump_exception to a commond API

merge these two APIs to 'dump_intr_excp_frame'

Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Mingqiang Chi
2018-05-21 18:02:51 +08:00
committed by lijinxia
parent d88b968305
commit 7c9cc6bcd4
3 changed files with 20 additions and 42 deletions

View File

@@ -434,6 +434,7 @@ void dispatch_exception(struct intr_excp_ctx *ctx)
/* Obtain lock to ensure exception dump doesn't get corrupted */
spinlock_obtain(&exception_spinlock);
/* Dump exception context */
dump_exception(ctx, cpu_id);
/* Release lock to let other CPUs handle exception */