4.104.114.84.95
Last change
on this file since aa9f194 was
aa9f194,
checked in by Joel Sherrill <joel.sherrill@…>, on 08/11/95 at 14:27:23
|
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.
|
-
Property mode set to
100644
|
File size:
923 bytes
|
Line | |
---|
1 | /* void Shm_interrupt_unix( node ) |
---|
2 | * |
---|
3 | * This routine is the shared memory driver routine which |
---|
4 | * generates interrupts to other CPUs. |
---|
5 | * |
---|
6 | * Input parameters: |
---|
7 | * node - destination of this packet (0 = broadcast) |
---|
8 | * |
---|
9 | * Output parameters: NONE |
---|
10 | * |
---|
11 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * All rights assigned to U.S. Government, 1994. |
---|
14 | * |
---|
15 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
16 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
17 | * notice must appear in all copies of this file and its derivatives. |
---|
18 | * |
---|
19 | * $Id$ |
---|
20 | */ |
---|
21 | |
---|
22 | #include <rtems.h> |
---|
23 | #include <shm.h> |
---|
24 | |
---|
25 | #include <stdio.h> |
---|
26 | #include <signal.h> |
---|
27 | |
---|
28 | void Shm_Cause_interrupt_unix( |
---|
29 | rtems_unsigned32 node |
---|
30 | ) |
---|
31 | { |
---|
32 | Shm_Interrupt_information *intr; |
---|
33 | intr = &Shm_Interrupt_table[node]; |
---|
34 | |
---|
35 | kill((pid_t) intr->address, intr->value); |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.