mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-03 05:56:57 +00:00
Fix violations for function whose parameter can be read-only. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
32 lines
608 B
C
32 lines
608 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef DUMP_H
|
|
#define DUMP_H
|
|
|
|
struct intr_excp_ctx;
|
|
|
|
#ifdef HV_DEBUG
|
|
#define CALL_TRACE_HIERARCHY_MAX 20U
|
|
#define DUMP_STACK_SIZE 0x200U
|
|
|
|
void dump_intr_excp_frame(const struct intr_excp_ctx *ctx);
|
|
void dump_exception(struct intr_excp_ctx *ctx, uint16_t pcpu_id);
|
|
|
|
#else
|
|
static inline void dump_intr_excp_frame(__unused const struct intr_excp_ctx *ctx)
|
|
{
|
|
}
|
|
|
|
static inline void dump_exception(__unused struct intr_excp_ctx *ctx,
|
|
__unused uint16_t pcpu_id)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* DUMP_H */
|