mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-30 04:55:21 +00:00
Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.Change the API tgt_uart/ static int uart16550_get_rx_err(uint32_t rx_data) to return uint32_t b.modified the format of if from "if (length > 32*(length/32))" to "if (length % 32U > 0)" V3->V4: a.change the uint64_t type numeric constant's suffix from U to UL Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
32 lines
594 B
C
32 lines
594 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(struct intr_excp_ctx *ctx);
|
|
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id);
|
|
|
|
#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)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* DUMP_H */
|