source: rtems/c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/cause_intr.c @ 5626be2

4.104.114.84.95
Last change on this file since 5626be2 was 5626be2, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:51:16

2003-09-04 Joel Sherrill <joel@…>

  • include/bsp.h, shmsupp/addrconv.c, shmsupp/cause_intr.c, shmsupp/getcfg.c, shmsupp/lock.c, shmsupp/mpisr.c, startup/bspclean.c, startup/bspstart.c, startup/setvec.c, tools/print_dump.c, tty/tty.c: URL for license changed.
  • 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-1999.
12 *  On-Line Applications Research Corporation (OAR).
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.com/license/LICENSE.
17 *
18 *  $Id$
19 */
20
21#include <stdio.h>
22
23#include <rtems.h>
24#include <rtems/error.h>
25
26#include <shm_driver.h>
27
28void Shm_Cause_interrupt_pxfl(
29  rtems_unsigned32 node
30)
31{
32  Shm_Interrupt_information *intr;
33  rtems_unsigned32 *u32;
34  rtems_unsigned32  value;
35
36  intr = &Shm_Interrupt_table[node];
37  value = intr->value;
38
39  switch ( intr->length ) {
40    case NO_INTERRUPT:
41       break;
42
43    case LONG:
44      u32   = (rtems_unsigned32 *)intr->address;
45      HPPA_ASM_STWAS( value, 0, u32 );
46      break;
47    default:
48      fprintf( stderr, "Shm_Cause_interrupt_pxfl: Unsupported length!!!\n" );
49  }
50}
Note: See TracBrowser for help on using the repository browser.