diff options
| author | ragge <ragge@NetBSD.org> | 2003-08-25 20:32:13 +0000 |
|---|---|---|
| committer | ragge <ragge@NetBSD.org> | 2003-08-25 20:32:13 +0000 |
| commit | 644236bf71152f5fc20ba78af3fa5aa8a0f40ccd (patch) | |
| tree | 07086bc304121241efa8155e5619c3e4b9ca0595 /lib/libpthread | |
| parent | 534b18e585ec7da62fc843e845d237217f3d334c (diff) | |
Add PT_TRAPUC and pthread__switch_return_point.
Not tested (as most of the pthread stuff on vax) but at least
allow the system to compile.
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/arch/vax/genassym.cf | 3 | ||||
| -rw-r--r-- | lib/libpthread/arch/vax/pthread_switch.S | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libpthread/arch/vax/genassym.cf b/lib/libpthread/arch/vax/genassym.cf index 55869547fa9..fdedc3df93a 100644 --- a/lib/libpthread/arch/vax/genassym.cf +++ b/lib/libpthread/arch/vax/genassym.cf @@ -1,4 +1,4 @@ -# $NetBSD: genassym.cf,v 1.2 2003/07/17 20:55:31 nathanw Exp $ +# $NetBSD: genassym.cf,v 1.3 2003/08/25 20:32:13 ragge Exp $ # # Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -51,6 +51,7 @@ define PT_SLEEPUC offsetof(struct __pthread_st, pt_sleepuc) define PT_SPINLOCKS offsetof(struct __pthread_st, pt_spinlocks) define PT_HELDLOCK offsetof(struct __pthread_st, pt_heldlock) define PT_UC offsetof(struct __pthread_st, pt_uc) +define PT_TRAPUC offsetof(struct __pthread_st, pt_trapuc) define CONTEXTSIZE sizeof(ucontext_t) define UC_FLAGS offsetof(ucontext_t, uc_flags) define UC_GREGS offsetof(ucontext_t, uc_mcontext.__gregs) diff --git a/lib/libpthread/arch/vax/pthread_switch.S b/lib/libpthread/arch/vax/pthread_switch.S index 203c0b6fe8d..e322add420e 100644 --- a/lib/libpthread/arch/vax/pthread_switch.S +++ b/lib/libpthread/arch/vax/pthread_switch.S @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_switch.S,v 1.3 2003/07/09 00:55:45 matt Exp $ */ +/* $NetBSD: pthread_switch.S,v 1.4 2003/08/25 20:32:13 ragge Exp $ */ /*- * Copyright (c) 2001, 2003 The NetBSD Foundation, Inc. @@ -81,6 +81,7 @@ ENTRY(pthread__switch, 0) movl %sp,PT_UC(%r2) /* self->pt_uc = &context */ STACK_SWITCH(%r3) /* r2 = self; r3 = next */ +pthread__switch_return_point: .globl pthread__switch_return_point setcontext: pushl %sp /* sp = &context */ calls $1,_setcontext_u |
