From aa9f19454a6912a337752fee5e0f98414de3e8a5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 Aug 1995 14:27:23 +0000 Subject: Initialization of semaphores was incorrect. It did not force the count to "1" to indicate availability. Interrupt support was added. Problem where newlib's errno "overrides" that set by system calls was addressed. Fixed bug which resulted in all nodes using the same semaphore although an array of semaphores was allocated. --- c/src/lib/libbsp/unix/posix/shmsupp/intr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'c/src/lib/libbsp/unix/posix/shmsupp/intr.c') diff --git a/c/src/lib/libbsp/unix/posix/shmsupp/intr.c b/c/src/lib/libbsp/unix/posix/shmsupp/intr.c index 44259479db..2f8cd6db11 100644 --- a/c/src/lib/libbsp/unix/posix/shmsupp/intr.c +++ b/c/src/lib/libbsp/unix/posix/shmsupp/intr.c @@ -23,9 +23,14 @@ #include #include - +#include + void Shm_Cause_interrupt_unix( rtems_unsigned32 node ) { + Shm_Interrupt_information *intr; + intr = &Shm_Interrupt_table[node]; + + kill((pid_t) intr->address, intr->value); } -- cgit v1.2.3