mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
hv: clean up function definitions in dump.h
seperate the function definitions into debug/release directories to better distinguish debug/release libraries Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
8920fbacaa
commit
649d0e323b
@ -6,6 +6,9 @@
|
||||
|
||||
#include <hypervisor.h>
|
||||
|
||||
#define CALL_TRACE_HIERARCHY_MAX 20U
|
||||
#define DUMP_STACK_SIZE 0x200U
|
||||
|
||||
/*
|
||||
* readable exception descriptors.
|
||||
*/
|
||||
|
@ -9,23 +9,7 @@
|
||||
|
||||
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 */
|
||||
|
10
hypervisor/release/dump.c
Normal file
10
hypervisor/release/dump.c
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <hypervisor.h>
|
||||
|
||||
void dump_intr_excp_frame(__unused const struct intr_excp_ctx *ctx) {}
|
||||
void dump_exception(__unused struct intr_excp_ctx *ctx, __unused uint16_t pcpu_id) {}
|
Loading…
Reference in New Issue
Block a user