For ski, break into debugger instead of exiting

This commit is contained in:
scole 2016-11-22 22:50:32 +00:00
parent c255d6a0af
commit 53744582f1
8 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetsticky.c,v 1.1 2016/08/05 16:40:47 scole Exp $ */
/* $NetBSD: fpgetsticky.c,v 1.2 2016/11/22 22:50:32 scole Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@ -35,7 +35,7 @@ fp_except_t
fpgetsticky(void)
{
/* XXX implement, pause in ski */
__asm __volatile("break.i 0");
__asm __volatile("break.i 1");
return (fp_except_t)0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpsetsticky.c,v 1.1 2016/08/05 16:40:47 scole Exp $ */
/* $NetBSD: fpsetsticky.c,v 1.2 2016/11/22 22:50:32 scole Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@ -35,7 +35,7 @@ fp_except_t
fpsetsticky(fp_except_t sticky)
{
/* XXX implement, pause in ski */
__asm __volatile("break.i 0");
__asm __volatile("break.i 1");
return (fp_except_t)0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: getcontext.S,v 1.1 2016/08/05 16:40:47 scole Exp $ */
/* $NetBSD: getcontext.S,v 1.2 2016/11/22 22:50:32 scole Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@ -35,6 +35,6 @@ WEAK_ALIAS(getcontext, _getcontext)
ENTRY(_getcontext,0)
/* XXX implement, halt in ski */
break.i 0
break.i 1
END(_getcontext)

View File

@ -1,4 +1,4 @@
/* $NetBSD: makecontext.c,v 1.1 2016/08/05 16:40:47 scole Exp $ */
/* $NetBSD: makecontext.c,v 1.2 2016/11/22 22:50:32 scole Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@ -41,5 +41,5 @@ void
makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
{
/* XXX implement, halt in ski */
__asm __volatile("break.i 0");
__asm __volatile("break.i 1");
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: swapcontext.S,v 1.1 2016/08/05 16:40:47 scole Exp $ */
/* $NetBSD: swapcontext.S,v 1.2 2016/11/22 22:50:32 scole Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
ENTRY(swapcontext,0)
/* XXX implement, halt in ski */
break.i 0
break.i 1
END(swapcontext)

View File

@ -1,4 +1,4 @@
/* $NetBSD: __clone.S,v 1.2 2016/08/05 16:40:47 scole Exp $ */
/* $NetBSD: __clone.S,v 1.3 2016/11/22 22:51:53 scole Exp $ */
/*-
* Copyright (c) 2006,2016 The NetBSD Foundation, Inc.
@ -37,6 +37,6 @@ WEAK_ALIAS(clone, __clone)
ENTRY(__clone,4)
/* XXX implement, break in ski*/
break.i 0
break.i 1
END(__clone)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ptrace.S,v 1.2 2016/08/05 16:40:47 scole Exp $ */
/* $NetBSD: ptrace.S,v 1.3 2016/11/22 22:52:14 scole Exp $ */
/*-
* Copyright (c) 2006,2016 The NetBSD Foundation, Inc.
@ -31,6 +31,6 @@
ENTRY(ptrace,0)
/* XXX implement, halt in ski */
break.i 0
break.i 1
END(ptrace)

View File

@ -1,4 +1,4 @@
/* $NetBSD: core_machdep.c,v 1.1 2016/08/05 16:50:07 scole Exp $ */
/* $NetBSD: core_machdep.c,v 1.2 2016/11/22 22:53:09 scole Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: core_machdep.c,v 1.1 2016/08/05 16:50:07 scole Exp $");
__KERNEL_RCSID(0, "$NetBSD: core_machdep.c,v 1.2 2016/11/22 22:53:09 scole Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -53,7 +53,7 @@ cpu_coredump(struct lwp *l, struct coredump_iostate *iocookie,
struct core *chdr)
{
/* XXX implement, pause in ski */
__asm __volatile("break.i 0");
__asm __volatile("break.i 1");
return -1;
}