diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-06-07 13:05:07 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-06-07 13:05:07 +0000 |
commit | 904199a15491321af6253faed6204623d9ddc579 (patch) | |
tree | 52faf6dab45a2b61bd7a7821c9245758ae45aed3 /c/src/lib/libbsp/powerpc/tqm8xx | |
parent | 2011-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-904199a15491321af6253faed6204623d9ddc579.tar.bz2 |
2011-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
* configure.ac, startup/bspstart.c: Use standard cache BSP options.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/tqm8xx')
-rw-r--r-- | c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/tqm8xx/configure.ac | 20 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c | 4 |
3 files changed, 11 insertions, 17 deletions
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog b/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog index 751010adcb..5308cf327e 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog +++ b/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog @@ -1,3 +1,7 @@ +2011-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * configure.ac, startup/bspstart.c: Use standard cache BSP options. + 2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org> * timer/timer.c: Include <rtems/btimer.h>. diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/configure.ac b/c/src/lib/libbsp/powerpc/tqm8xx/configure.ac index d701631186..38cb34f6e8 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/configure.ac +++ b/c/src/lib/libbsp/powerpc/tqm8xx/configure.ac @@ -18,21 +18,11 @@ RTEMS_PROG_CCAS RTEMS_CHECK_NETWORKING AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes") -RTEMS_BSPOPTS_SET([PPC_USE_DATA_CACHE],[*],[1]) -RTEMS_BSPOPTS_HELP([PPC_USE_DATA_CACHE], -[If defined, then the PowerPC specific code in RTEMS will use - data cache instructions to optimize the context switch code. - This code can conflict with debuggers or emulators.]) - -RTEMS_BSPOPTS_SET([DATA_CACHE_ENABLE],[*],[1]) -RTEMS_BSPOPTS_HELP([DATA_CACHE_ENABLE], -[If defined, the data cache will be enabled after address translation - is turned on.]) - -RTEMS_BSPOPTS_SET([INSTRUCTION_CACHE_ENABLE],[*],[1]) -RTEMS_BSPOPTS_HELP([INSTRUCTION_CACHE_ENABLE], -[If defined, the instruction cache will be enabled after address translation - is turned on.]) +RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([*],[1]) +RTEMS_BSPOPTS_HELP_DATA_CACHE_ENABLED + +RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([*],[1]) +RTEMS_BSPOPTS_HELP_INSTRUCTION_CACHE_ENABLED RTEMS_BSPOPTS_SET([CONSOLE_CHN],[*],[CONS_CHN_SMC1]) RTEMS_BSPOPTS_HELP([CONSOLE_CHN], diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c index 20e3c3722d..cfd99e2fa2 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c @@ -147,11 +147,11 @@ void bsp_start( void) * Enable instruction and data caches. Do not force writethrough mode. */ -#if INSTRUCTION_CACHE_ENABLE +#if BSP_INSTRUCTION_CACHE_ENABLED rtems_cache_enable_instruction(); #endif -#if DATA_CACHE_ENABLE +#if BSP_DATA_CACHE_ENABLED rtems_cache_enable_data(); #endif |