source:
rtems/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c
@
d637822
Last change on this file since d637822 was 98e4ebf5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/97 at 15:45:54 | |
---|---|
|
|
File size: 1.1 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 | * | |
[03f2154e] | 11 | * COPYRIGHT (c) 1989-1997. |
[ac7d5ef0] | 12 | * On-Line Applications Research Corporation (OAR). |
[03f2154e] | 13 | * Copyright assigned to U.S. Government, 1994. |
[ac7d5ef0] | 14 | * |
[98e4ebf5] | 15 | * The license and distribution terms for this file may be |
16 | * found in the file LICENSE in this distribution or at | |
[03f2154e] | 17 | * http://www.OARcorp.com/rtems/license.html. |
[ac7d5ef0] | 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.