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:
1019 bytes
|
Rev | Line | |
---|
[ac7d5ef0] | 1 | /* Spurious_driver |
---|
| 2 | * |
---|
| 3 | * This routine installs spurious interrupt handlers for the DMV152. |
---|
| 4 | * |
---|
| 5 | * Input parameters: NONE |
---|
| 6 | * |
---|
| 7 | * Output parameters: NONE |
---|
| 8 | * |
---|
| 9 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993. |
---|
| 10 | * On-Line Applications Research Corporation (OAR). |
---|
| 11 | * |
---|
[98e4ebf5] | 12 | * The license and distribution terms for this file may be |
---|
| 13 | * found in the file LICENSE in this distribution or at |
---|
[03f2154e] | 14 | * http://www.OARcorp.com/rtems/license.html. |
---|
[ac7d5ef0] | 15 | * |
---|
| 16 | * $Id$ |
---|
| 17 | */ |
---|
| 18 | |
---|
| 19 | #include <rtems.h> |
---|
| 20 | #include <bsp.h> |
---|
| 21 | #include <stdio.h> |
---|
| 22 | |
---|
| 23 | rtems_isr Spurious_Isr( |
---|
| 24 | rtems_vector_number vector |
---|
| 25 | ) |
---|
| 26 | { |
---|
| 27 | void *sp = 0; |
---|
| 28 | |
---|
| 29 | asm volatile ( "movea.l %%sp,%0 " : "=a" (sp) : "0" (sp) ); |
---|
| 30 | |
---|
| 31 | fprintf( stderr, "Vector 0x%x sp=0x%p\n", vector, sp ); |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | rtems_device_driver Spurious_Initialize( |
---|
| 35 | rtems_device_major_number major, |
---|
| 36 | rtems_device_minor_number minor, |
---|
| 37 | void *pargp, |
---|
| 38 | rtems_id tid, |
---|
| 39 | rtems_unsigned32 *rval |
---|
| 40 | ) |
---|
| 41 | { |
---|
| 42 | rtems_vector_number vector; |
---|
| 43 | |
---|
| 44 | for ( vector = 0x40 ; vector <= 0xFF ; vector++ ) |
---|
| 45 | (void) set_vector( Spurious_Isr, vector, 1 ); |
---|
[759a9d9] | 46 | |
---|
| 47 | return 0; |
---|
[ac7d5ef0] | 48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.