better panic

This commit is contained in:
2026-02-07 02:18:15 +01:00
parent b920c87bab
commit 458ba375f3
8 changed files with 36 additions and 16 deletions

View File

@@ -87,11 +87,7 @@ static void page_fault_handler(struct cpu_status_t* ctx)
CHECK_BIT(ctx->error_code, 7) ? " SGX_VIOLATION" : "",
cr2);
/* if (CHECK_BIT(ctx->error_code, 0))
{
panic(ctx);
} */
panic(ctx);
panic(ctx, "page fault");
}
static void gp_fault_handler(struct cpu_status_t* ctx)
@@ -117,7 +113,7 @@ static void gp_fault_handler(struct cpu_status_t* ctx)
index);
}
panic(ctx);
panic(ctx, "gp fault");
}
struct cpu_status_t* interrupt_dispatch(struct cpu_status_t* context)
@@ -217,4 +213,4 @@ struct cpu_status_t* interrupt_dispatch(struct cpu_status_t* context)
}
return context;
}
}