mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-04 22:47:00 +00:00
Each of them now resides in a separate .c file. Tracked-On: #5825 Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
21 lines
377 B
C
21 lines
377 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <arch/x86/cpu.h>
|
|
#include <arch/x86/irq.h>
|
|
#include <debug/dump.h>
|
|
|
|
void dispatch_exception(struct intr_excp_ctx *ctx)
|
|
{
|
|
uint16_t pcpu_id = get_pcpu_id();
|
|
|
|
/* Dump exception context */
|
|
dump_exception(ctx, pcpu_id);
|
|
|
|
/* Halt the CPU */
|
|
cpu_dead();
|
|
}
|