4.104.114.84.95
Last change
on this file since 9a7e074d was
48bfd992,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/30/99 at 19:58:02
|
Renamed shm.h to shm_driver.h to avoid conflicts with POSIX shm.h.
Renamed file shmsupp/intr.c in some BSPs to shmsupp/cause_intr.c to
avoid conflict with rtems/src/intr.c (Classic API Interrupt Manager).
|
-
Property mode set to
100644
|
File size:
870 bytes
|
Line | |
---|
1 | /* Shm_Convert_address |
---|
2 | * |
---|
3 | * This routine takes into account the peculiar short VME address |
---|
4 | * of the CVME961 board. The CVME961 maps short address space |
---|
5 | * 0xffffxxxx to 0xb400xxxx. |
---|
6 | * |
---|
7 | * Input parameters: |
---|
8 | * address - address to convert |
---|
9 | * |
---|
10 | * Output parameters: |
---|
11 | * returns - converted address |
---|
12 | * |
---|
13 | * COPYRIGHT (c) 1989-1999. |
---|
14 | * On-Line Applications Research Corporation (OAR). |
---|
15 | * |
---|
16 | * The license and distribution terms for this file may be |
---|
17 | * found in the file LICENSE in this distribution or at |
---|
18 | * http://www.OARcorp.com/rtems/license.html. |
---|
19 | * |
---|
20 | * $Id$ |
---|
21 | */ |
---|
22 | |
---|
23 | #include <rtems.h> |
---|
24 | #include <bsp.h> |
---|
25 | #include "shm_driver.h" |
---|
26 | |
---|
27 | void *Shm_Convert_address( |
---|
28 | void *address |
---|
29 | ) |
---|
30 | { |
---|
31 | rtems_unsigned32 workaddr = (rtems_unsigned32) address; |
---|
32 | |
---|
33 | if ( workaddr >= 0xffff0000 ) |
---|
34 | workaddr = (workaddr & 0xffff) | 0xb4000000; |
---|
35 | return ( (rtems_unsigned32 *)workaddr ); |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.