hv: Remove nested check when dump exception
removed unnecessary nested check when dump exception 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:
parent
8384ed2564
commit
d88b968305
|
@ -296,11 +296,6 @@ void __assert(uint32_t line, const char *file, char *txt)
|
||||||
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id)
|
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id)
|
||||||
{
|
{
|
||||||
const char *name = "Not defined";
|
const char *name = "Not defined";
|
||||||
static int nested = 1;
|
|
||||||
|
|
||||||
/* avoid endless loop, only dump the first exception */
|
|
||||||
if (nested++ > 1)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (ctx->vector < 0x20)
|
if (ctx->vector < 0x20)
|
||||||
name = excp_names[ctx->vector];
|
name = excp_names[ctx->vector];
|
||||||
|
|
Loading…
Reference in New Issue