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

4.104.114.84.95
Last change on this file since a625ccd 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
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 <rtems/error.h>
26
27#include <shm.h>
28
29void Shm_Cause_interrupt_pxfl(
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;
43
44    case LONG:
45      u32   = (rtems_unsigned32 *)intr->address;
46      HPPA_ASM_STWAS( value, 0, u32 );
47      break;
48    default:
49      fprintf( stderr, "Shm_Cause_interrupt_pxfl: Unsupported length!!!\n" );
50  }
51}
Note: See TracBrowser for help on using the repository browser.