From 61e4914300709dabbae1d051329a2377cc1c3e82 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 29 Oct 2003 23:40:42 +0000 Subject: [PATCH] first pass siginfo for mips --- sys/arch/mips/include/frame.h | 7 ++++++- sys/arch/mips/include/mcontext.h | 5 ++++- sys/arch/mips/include/signal.h | 10 +++++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/sys/arch/mips/include/frame.h b/sys/arch/mips/include/frame.h index 4f3188b158b7..f3d9751d3f37 100644 --- a/sys/arch/mips/include/frame.h +++ b/sys/arch/mips/include/frame.h @@ -1,4 +1,4 @@ -/* $NetBSD: frame.h,v 1.2 2003/01/17 23:36:08 thorpej Exp $ */ +/* $NetBSD: frame.h,v 1.3 2003/10/29 23:40:42 christos Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -66,6 +66,11 @@ struct saframe { sa_upcall_t sa_upcall; }; +void *getframe(struct lwp *, int, int *); +#ifdef COMPAT_16 +void sendsig_sigcontext(const ksiginfo_t *, const sigset_t *); +#endif + #endif /* _LOCORE */ #endif /* _MIPS_FRAME_H_ */ diff --git a/sys/arch/mips/include/mcontext.h b/sys/arch/mips/include/mcontext.h index 901ac63de116..775203999d9a 100644 --- a/sys/arch/mips/include/mcontext.h +++ b/sys/arch/mips/include/mcontext.h @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.4 2003/10/08 22:43:01 thorpej Exp $ */ +/* $NetBSD: mcontext.h,v 1.5 2003/10/29 23:40:42 christos Exp $ */ /*- * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc. @@ -141,6 +141,9 @@ typedef struct { #define _OFFSETOF_UC_GREGS 56 #endif +#define _UC_SETSTACK 0x00010000 +#define _UC_CLRSTACK 0x00020000 + #define _UC_MACHINE_SP(uc) ((uc)->uc_mcontext.__gregs[_REG_SP]) #define _UC_MACHINE_PC(uc) ((uc)->uc_mcontext.__gregs[_REG_EPC]) #define _UC_MACHINE_INTRV(uc) ((uc)->uc_mcontext.__gregs[_REG_V0]) diff --git a/sys/arch/mips/include/signal.h b/sys/arch/mips/include/signal.h index 487cf521c9cc..195375513574 100644 --- a/sys/arch/mips/include/signal.h +++ b/sys/arch/mips/include/signal.h @@ -1,4 +1,4 @@ -/* $NetBSD: signal.h,v 1.20 2003/08/07 16:28:29 agc Exp $ */ +/* $NetBSD: signal.h,v 1.21 2003/10/29 23:40:42 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -41,8 +41,16 @@ #include /* for API selection */ +#define __HAVE_SIGINFO +#ifdef COMPAT_16 +#define SIGTRAMP_VALID(vers) ((unsigned)(vers) <= 2) +#else +#define SIGTRAMP_VALID(vers) ((vers) == 2) +#endif + #if !defined(__ASSEMBLER__) + /* * Machine-dependent signal definitions */