Add support for LPC32XX cache

This commit is contained in:
Kevin Kirspel 2017-01-30 11:58:24 -05:00 committed by Sebastian Huber
parent ea395a736d
commit 5382f63980

7
rtemsbsd/include/machine/rtems-bsd-cache.h Normal file → Executable file
View File

@ -42,15 +42,12 @@
#include <bsp.h>
#if defined(LIBBSP_ARM_LPC24XX_BSP_H)
#if defined(LIBBSP_ARM_LPC24XX_BSP_H) || (defined(LIBBSP_ARM_LPC32XX_BSP_H) && defined(LPC32XX_DISABLE_MMU))
/* No cache */
#elif defined(LIBBSP_ARM_ALTERA_CYCLONE_V_BSP_H) || \
defined(LIBBSP_ARM_XILINX_ZYNQ_BSP_H)
defined(LIBBSP_ARM_XILINX_ZYNQ_BSP_H) || (defined(LIBBSP_ARM_LPC32XX_BSP_H) && !defined(LPC32XX_DISABLE_MMU))
/* With cache, no coherency support in hardware */
#define CPU_DATA_CACHE_ALIGNMENT 32
#elif defined(LIBBSP_ARM_LPC32XX_BSP_H)
/* With cache, no coherency support in hardware */
#include <libcpu/cache.h>
#elif defined(__GEN83xx_BSP_h)
/* With cache, coherency support in hardware */
#endif