1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
kvisc/vm/pc/except.h
julianb0 ee4f983103
cr1
2019-06-16 12:48:30 +02:00

21 lines
602 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.
enum
{
E_SHT, // Shutdown instruction
E_UDF, // Undefined behavior
E_IMP, // Not implemented
E_ILL, // Ill-formed
E_ACC, // Invalid access
E_SYS, // Supervisor only
E_ALI, // Alignment error
E_STA, // Stack misalignment
E_STU, // Stack underflow
NEXCPTS
};
extern int dying;
void _except(ctx_t *, int, char *, ...) __attribute__((__noreturn__));