diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-03-10 05:03:25 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-03-10 05:03:25 +0000 |
commit | 9ba85825418c4c702bba4c9e682bc8d578dd7716 (patch) | |
tree | fdb038044a1d35d721e36908b85e968608ea3246 /lib | |
parent | 78198b423a2caae505a4dd6f70d0c930e31e3fd0 (diff) |
No point in keeping the threading support for vax, I guess
Diffstat (limited to 'lib')
-rw-r--r-- | lib/librthread/arch/vax/_atomic_lock.c | 35 | ||||
-rw-r--r-- | lib/librthread/arch/vax/cerror.S | 41 |
2 files changed, 0 insertions, 76 deletions
diff --git a/lib/librthread/arch/vax/_atomic_lock.c b/lib/librthread/arch/vax/_atomic_lock.c deleted file mode 100644 index 7357d01f1b6..00000000000 --- a/lib/librthread/arch/vax/_atomic_lock.c +++ /dev/null @@ -1,35 +0,0 @@ -/* $OpenBSD: _atomic_lock.c,v 1.3 2013/06/01 20:47:40 tedu Exp $ */ - -/* - * Atomic lock for vax - * Written by Miodrag Vallat <miod@openbsd.org> - placed in the public domain. - */ - -#include <machine/spinlock.h> - -int -_atomic_lock(volatile _atomic_lock_t *lock) -{ - _atomic_lock_t old; - - /* - * The Branch on Bit Set and Set Interlocked instruction - * sets a given bit in a register or a memory location, as an - * atomic, interlocked operation. - * If the bit was set, execution continues at the branch - * location. - * - * For more details, please refer to the Vax Architecture - * Reference Manual, chapter 3 (Instructions), section - * ``Control instructions''. - */ - __asm__ ( - "movl $1, %1\n" /* _ATOMIC_LOCK_LOCKED */ - "bbssi $0, %0, 1f\n" - "movl $0, %1\n" /* _ATOMIC_LOCK_UNLOCKED */ - "1: \n" - : "=m" (*lock), "=r" (old) : "0" (*lock) - ); - - return (old != _ATOMIC_LOCK_UNLOCKED); -} diff --git a/lib/librthread/arch/vax/cerror.S b/lib/librthread/arch/vax/cerror.S deleted file mode 100644 index 1414b029536..00000000000 --- a/lib/librthread/arch/vax/cerror.S +++ /dev/null @@ -1,41 +0,0 @@ -/* $OpenBSD: cerror.S,v 1.3 2015/05/12 04:22:01 miod Exp $ */ -/* - * Copyright (c) 1983, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -#include "SYS.h" - - .globl _C_LABEL(__errno) - .globl _C_LABEL(__cerror) -_C_LABEL(__cerror): - pushl %r0 - calls $0, _C_LABEL(__errno) - movl (%sp)+, (%r0) - mnegl $1,%r0 - movl %r0,%r1 - ret |