diff options
author | bad <bad@pkgsrc.org> | 1999-02-03 22:18:39 +0000 |
---|---|---|
committer | bad <bad@pkgsrc.org> | 1999-02-03 22:18:39 +0000 |
commit | 9c2d364fbff90891d986f7f6fb11b6ec632e5717 (patch) | |
tree | 0a41fc6679762e7e9c3d57124f0442c6b9fcbdb0 | |
parent | 937f35b14d6aa40c8267f4688b7a2cd98c485ad8 (diff) | |
download | pkgsrc-9c2d364fbff90891d986f7f6fb11b6ec632e5717.tar.gz |
Track recent symbol renaming in <arm32/setjmp.h>.
-rw-r--r-- | devel/mit-pthreads/patches/patch-bb | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/devel/mit-pthreads/patches/patch-bb b/devel/mit-pthreads/patches/patch-bb index 219ca523a29..40e27718987 100644 --- a/devel/mit-pthreads/patches/patch-bb +++ b/devel/mit-pthreads/patches/patch-bb @@ -1,8 +1,8 @@ -$NetBSD: patch-bb,v 1.1 1998/12/28 22:22:03 bad Exp $ +$NetBSD: patch-bb,v 1.2 1999/02/03 22:18:39 bad Exp $ ---- /dev/null Sun Oct 25 03:15:17 1998 -+++ machdep/engine-arm32-netbsd-1.3.c Sun Oct 25 18:38:54 1998 -@@ -0,0 +1,195 @@ +--- /dev/null Wed Feb 3 11:06:48 1999 ++++ machdep/engine-arm32-netbsd-1.3.c Wed Feb 3 22:33:58 1999 +@@ -0,0 +1,203 @@ +/* ==== machdep.c ============================================================ + * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu + * @@ -16,7 +16,7 @@ $NetBSD: patch-bb,v 1.1 1998/12/28 22:22:03 bad Exp $ + */ + +#ifndef lint -+static const char rcsid[] = "$Id: patch-bb,v 1.1 1998/12/28 22:22:03 bad Exp $"; ++static const char rcsid[] = "$Id: patch-bb,v 1.2 1999/02/03 22:18:39 bad Exp $"; +#endif + +#include <pthread.h> @@ -27,6 +27,14 @@ $NetBSD: patch-bb,v 1.1 1998/12/28 22:22:03 bad Exp $ +#include <fcntl.h> +#include <stdio.h> + ++#if defined(_JB_REG_R13) ++#define REG_LR _JB_REG_R14 ++#define REG_SP _JB_REG_R13 ++#else ++#define REG_LR JMPBUF_REG_R14 ++#define REG_SP JMPBUF_REG_R13 ++#endif ++ +/* ========================================================================== + * machdep_save_state() + */ @@ -152,10 +160,10 @@ $NetBSD: patch-bb,v 1.1 1998/12/28 22:22:03 bad Exp $ + * returned from a longjmp() to the beginning of + * machdep_pthread_start(). + */ -+ machdep_pthread->machdep_state[JMPBUF_REG_R14] = (int)machdep_pthread_start; ++ machdep_pthread->machdep_state[REG_LR] = (int)machdep_pthread_start; + + /* Stack starts high and builds down. */ -+ machdep_pthread->machdep_state[JMPBUF_REG_R13] = ++ machdep_pthread->machdep_state[REG_SP] = + (int)machdep_pthread->machdep_stack + stack_size; +} + |