$NetBSD: patch-af,v 1.26 2011/05/04 20:31:40 adam Exp $ --- dlls/ntdll/signal_i386.c.orig 2009-07-03 18:28:33.000000000 +0200 +++ dlls/ntdll/signal_i386.c @@ -446,8 +446,13 @@ enum i386_trap_code TRAP_x86_PAGEFLT = T_PAGEFLT, /* Page fault */ TRAP_x86_ARITHTRAP = T_ARITHTRAP, /* Floating point exception */ TRAP_x86_ALIGNFLT = T_ALIGNFLT, /* Alignment check exception */ +#if defined(__NetBSD__) + TRAP_x86_MCHK = T_MCA, /* Machine check exception */ + TRAP_x86_CACHEFLT = T_XMM /* Cache flush exception */ +#else TRAP_x86_MCHK = T_MCHK, /* Machine check exception */ TRAP_x86_CACHEFLT = T_XMMFLT /* Cache flush exception */ +#endif #else TRAP_x86_DIVIDE = 0, /* Division by zero exception */ TRAP_x86_TRCTRAP = 1, /* Single-step exception */