source: rtems/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c @ 11290355

4.104.114.84.95
Last change on this file since 11290355 was 11290355, checked in by Joel Sherrill <joel.sherrill@…>, on 09/29/95 at 17:19:16

all targets compile .. tony's patches in place

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*  void Shm_Cause_interrupt_pxfl( 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 <stdio.h>
23
24#include <rtems.h>
25#include <shm.h>
26
27void Shm_Cause_interrupt_pxfl(
28  rtems_unsigned32 node
29)
30{
31  Shm_Interrupt_information *intr;
32  rtems_unsigned32 *u32;
33  rtems_unsigned32  value;
34
35  intr = &Shm_Interrupt_table[node];
36  value = intr->value;
37
38  switch ( intr->length ) {
39    case NO_INTERRUPT:
40       break;
41    case LONG:
42      u32   = (rtems_unsigned32 *)intr->address;
43      HPPA_ASM_STWAS( value, 0, u32 );
44      break;
45    default:
46      fprintf( stderr, "Shm_Cause_interrupt_pxfl: Unsupported length!!!\n" );
47      rtems_shutdown_executive( 0 );
48      break;
49  }
50}
Note: See TracBrowser for help on using the repository browser.