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

4.104.114.84.95
Last change on this file since e349411 was e349411, checked in by Joel Sherrill <joel.sherrill@…>, on 08/11/95 at 14:16:20

clean up of RunWay? interrupt support

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*  void Shm_Cause_interrupt_simhppa( 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_simhppa(
28  rtems_unsigned32 node
29)
30{
31  Shm_Interrupt_information *intr;
32  rtems_unsigned8  *u8;
33  rtems_unsigned16 *u16;
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    case BYTE:
44      u8   = (rtems_unsigned8 *)intr->address;
45      fprintf(
46        stderr,
47        "Shm_Cause_interrupt_simhppa: Writes of unsigned8 not supported!!!\n"
48      );
49      rtems_shutdown_executive( 0 );
50      break;
51    case WORD:
52      u16   = (rtems_unsigned16 *)intr->address;
53      fprintf(
54        stderr,
55        "Shm_Cause_interrupt_simhppa: Writes of unsigned8 not supported!!!\n"
56      );
57      rtems_shutdown_executive( 0 );
58      break;
59    case LONG:
60      u32   = (rtems_unsigned32 *)intr->address;
61      HPPA_ASM_STWAS( value, 0, u32 );
62      break;
63  }
64}
Note: See TracBrowser for help on using the repository browser.