mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
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:
@@ -37,19 +37,19 @@ struct intr_excp_ctx;
|
||||
#define CALL_TRACE_HIERARCHY_MAX 20
|
||||
#define DUMP_STACK_SIZE 0x200
|
||||
|
||||
void dump_intr_excp_frame(struct intr_excp_ctx *ctx);
|
||||
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id);
|
||||
void dump_interrupt(struct intr_excp_ctx *ctx);
|
||||
|
||||
#else
|
||||
static inline void dump_intr_excp_frame(__unused struct intr_excp_ctx *ctx)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void dump_exception(__unused struct intr_excp_ctx *ctx,
|
||||
__unused uint32_t cpu_id)
|
||||
__unused uint32_t cpu_id)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void dump_interrupt(__unused struct intr_excp_ctx *ctx)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* DUMP_H */
|
||||
|
Reference in New Issue
Block a user