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

4.104.114.84.95
Last change on this file since 6fd3979 was 98e4ebf5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/97 at 15:45:54

Fixed typo in the pointer to the license terms.

  • Property mode set to 100644
File size: 1.1 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-1997.
12 *  On-Line Applications Research Corporation (OAR).
13 *  Copyright assigned to U.S. Government, 1994.
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.OARcorp.com/rtems/license.html.
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.