Index: sys/arch/x86/x86/syscall.c =================================================================== RCS file: /cvsroot/src/sys/arch/x86/x86/syscall.c,v retrieving revision 1.18 diff -p -u -r1.18 syscall.c --- sys/arch/x86/x86/syscall.c 6 Apr 2019 11:54:21 -0000 1.18 +++ sys/arch/x86/x86/syscall.c 30 Aug 2019 19:32:00 -0000 @@ -47,6 +47,10 @@ __KERNEL_RCSID(0, "$NetBSD: syscall.c,v #include #include +// XXXMRG +#include +#include + #include "opt_dtrace.h" #ifndef __x86_64__ @@ -143,6 +147,12 @@ syscall(struct trapframe *frame) X86_TF_RFLAGS(frame) &= ~PSL_C; /* carry bit */ } else { switch (error) { +#if 1 /* COMPAT_DRM */ + case ELAST+1: /* linux-y ERESTARTSYS */ + uprintf("%s: got linux ERESTARTSYS\n", __func__); + db_stacktrace(); +#endif + /* FALLTHROUGH */ case ERESTART: /* * The offset to adjust the PC by depends on whether we