mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
28 lines
451 B
C
28 lines
451 B
C
// The OS/K Team licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
#include "arch.h"
|
|
|
|
void _except(ctx_t *ctx, int code, char *fmt, ...)
|
|
{
|
|
va_list ap;
|
|
|
|
log("\nException %d - ", code);
|
|
|
|
va_start(ap, fmt);
|
|
vlog(fmt, ap);
|
|
va_end(ap);
|
|
|
|
log("\n");
|
|
|
|
dumpregs(ctx);
|
|
log("\n");
|
|
|
|
dumpfwstack(ctx);
|
|
|
|
if (ctx->mp)
|
|
free(ctx->mp);
|
|
exit(code);
|
|
}
|
|
|