diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-09-26 21:36:14 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-09-26 21:36:14 +0000 |
commit | 487c286c32e7f9cc01a6124c57753301bba398cb (patch) | |
tree | b65d7afb3a65ec947da1b73f9261739358af5e33 /c/src/lib/libcpu/hppa1.1/include/semaphore.h | |
parent | 2003-09-26 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-487c286c32e7f9cc01a6124c57753301bba398cb.tar.bz2 |
2003-09-26 Joel Sherrill <joel@OARcorp.com>
* hppa1.1/.cvsignore, hppa1.1/ChangeLog, hppa1.1/Makefile.am,
hppa1.1/configure.ac, hppa1.1/clock/.cvsignore,
hppa1.1/clock/Makefile.am, hppa1.1/clock/clock.c,
hppa1.1/include/.cvsignore, hppa1.1/include/Makefile.am,
hppa1.1/include/runway.h, hppa1.1/include/semaphore.h,
hppa1.1/milli/.cvsignore, hppa1.1/milli/Makefile.am,
hppa1.1/milli/milli.S, hppa1.1/semaphore/.cvsignore,
hppa1.1/semaphore/Makefile.am, hppa1.1/semaphore/semaphore.c,
hppa1.1/timer/.cvsignore, hppa1.1/timer/Makefile.am,
hppa1.1/timer/timer.c: Removed.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/hppa1.1/include/semaphore.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/c/src/lib/libcpu/hppa1.1/include/semaphore.h b/c/src/lib/libcpu/hppa1.1/include/semaphore.h deleted file mode 100644 index bb3fe5459c..0000000000 --- a/c/src/lib/libcpu/hppa1.1/include/semaphore.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Description: - * HPPA fast spinlock semaphores based on LDCWX instruction. - * These semaphores are not known to RTEMS. - * - * TODO: - * - * COPYRIGHT (c) 1994,95 by Division Incorporated - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _INCLUDE_HPPA1_1_SEMAPHORE_H -#define _INCLUDE_HPPA1_1_SEMAPHORE_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * This structure has hardware requirements. - * LDCWX opcode requires 16byte alignment for the lock - * 'lock' must be first member of structure. - */ - -#define SEM_ALIGN 16 - -typedef volatile struct { - - rtems_unsigned32 lock __attribute__ ((aligned (SEM_ALIGN))); - - rtems_unsigned32 flags; - - void *owner_tcb; /* for debug/commentary only */ - - rtems_unsigned32 user; /* for use by user */ - -} hppa_semaphore_t; - -/* - * Values for flags - */ - -#define HPPA_SEM_IN_USE 0x0001 /* semaphore owned by somebody */ -#define HPPA_SEM_NO_SPIN 0x0002 /* don't spin if unavailable */ -#define HPPA_SEM_INITIALLY_FREE 0x0004 /* init it to be free */ - -/* - * Caller specifiable flags - */ - -#define HPPA_SEM_CALLER_FLAGS (HPPA_SEM_NO_SPIN | HPPA_SEM_INITIALLY_FREE) - -void hppa_semaphore_pool_initialize(void *pool_base, int pool_size); - -rtems_unsigned32 hppa_semaphore_acquire(hppa_semaphore_t *sp, int flag); - -void hppa_semaphore_release(hppa_semaphore_t *sp); - -hppa_semaphore_t *hppa_semaphore_allocate(rtems_unsigned32 which, int flag); - -#ifdef __cplusplus -} -#endif - -#endif /* ! _INCLUDE_SEMAPHORE_H */ |