4.104.114.84.95
Last change
on this file since 254b4450 was
c64e4ed4,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/15/96 at 21:50:28
|
updates from Tony Bennett for PA and UNIX ports
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[11290355] | 1 | /* void Shm_Cause_interrupt_pxfl( node ) |
---|
[ac7d5ef0] | 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 | |
---|
[e349411] | 22 | #include <stdio.h> |
---|
[ac7d5ef0] | 23 | |
---|
| 24 | #include <rtems.h> |
---|
[c64e4ed4] | 25 | #include <rtems/error.h> |
---|
| 26 | |
---|
[e349411] | 27 | #include <shm.h> |
---|
[ac7d5ef0] | 28 | |
---|
[11290355] | 29 | void Shm_Cause_interrupt_pxfl( |
---|
[ac7d5ef0] | 30 | rtems_unsigned32 node |
---|
| 31 | ) |
---|
| 32 | { |
---|
| 33 | Shm_Interrupt_information *intr; |
---|
| 34 | rtems_unsigned32 *u32; |
---|
| 35 | rtems_unsigned32 value; |
---|
| 36 | |
---|
| 37 | intr = &Shm_Interrupt_table[node]; |
---|
| 38 | value = intr->value; |
---|
| 39 | |
---|
| 40 | switch ( intr->length ) { |
---|
| 41 | case NO_INTERRUPT: |
---|
| 42 | break; |
---|
[c64e4ed4] | 43 | |
---|
[ac7d5ef0] | 44 | case LONG: |
---|
| 45 | u32 = (rtems_unsigned32 *)intr->address; |
---|
| 46 | HPPA_ASM_STWAS( value, 0, u32 ); |
---|
| 47 | break; |
---|
[11290355] | 48 | default: |
---|
| 49 | fprintf( stderr, "Shm_Cause_interrupt_pxfl: Unsupported length!!!\n" ); |
---|
[ac7d5ef0] | 50 | } |
---|
| 51 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.