Files
acrn-hypervisor/hypervisor/arch/x86/exception.c
Shiqing Gao 672093a940 hv: multi-arch: include common IRQ header instead of arch-specific one
Include the common IRQ header rather than the arch-specific version.
This follows the style we defined for multi-arch development.

Remaining RISC-V related files will be updated in later patches when
integration with the common IRQ framework is implemented.

Tracked-On: #8845
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Wang Yu1 <yu1.wang@intel.com>
2025-11-05 15:14:41 +08:00

21 lines
343 B
C

/*
* Copyright (C) 2018-2022 Intel Corporation.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <irq.h>
#include <debug/dump.h>
#include <cpu.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();
}