diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2007-12-01 21:23:42 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2007-12-01 21:23:42 +0000 |
commit | c982f8039a67403a69d9fc1a7b2ed53b3f45d994 (patch) | |
tree | d1fa5795181134ab441efaf11e2c209544c41983 /c | |
parent | 2007-11-30 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-c982f8039a67403a69d9fc1a7b2ed53b3f45d994.tar.bz2 |
2007-12-01 Till Straumann <strauman@slac.stanford.edu>
* shared/vme/vmeconfig.c: Include <libcpu/bat.h> only
if the BSP-specific configuration header (VMEConfig.h)
defines BSP_VME_BAT_IDX so that this file can be used
on CPUs w/o bats (e500).
Diffstat (limited to 'c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/ChangeLog | 7 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/vme/vmeconfig.c | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/ChangeLog b/c/src/lib/libbsp/powerpc/ChangeLog index 1d32e1c5d2..c0398b2561 100644 --- a/c/src/lib/libbsp/powerpc/ChangeLog +++ b/c/src/lib/libbsp/powerpc/ChangeLog @@ -1,3 +1,10 @@ +2007-12-01 Till Straumann <strauman@slac.stanford.edu> + + * shared/vme/vmeconfig.c: Include <libcpu/bat.h> only + if the BSP-specific configuration header (VMEConfig.h) + defines BSP_VME_BAT_IDX so that this file can be used + on CPUs w/o bats (e500). + 2007-11-30 Till Straumann <strauman@slac.stanford.edu> * shared/startup/bspstart: removed _Cpu_table.exceptions_in_RAM. diff --git a/c/src/lib/libbsp/powerpc/shared/vme/vmeconfig.c b/c/src/lib/libbsp/powerpc/shared/vme/vmeconfig.c index 4c6da0471c..5553cff390 100644 --- a/c/src/lib/libbsp/powerpc/shared/vme/vmeconfig.c +++ b/c/src/lib/libbsp/powerpc/shared/vme/vmeconfig.c @@ -52,7 +52,9 @@ #include <bsp.h> #include <bsp/VME.h> #include <bsp/VMEConfig.h> +#ifdef BSP_VME_BAT_IDX #include <libcpu/bat.h> +#endif #include <rtems/bspIo.h> extern int BSP_VMEInit(); |