summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/machine/rtems-bsd-cache.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-09 22:42:09 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-10 09:06:58 +0200
commitbceabc95c1c85d793200446fa85f1ddc6313ea29 (patch)
tree973c8bd8deca9fd69913f2895cc91e0e6114d46c /rtemsbsd/include/machine/rtems-bsd-cache.h
parentAdd FreeBSD sources as a submodule (diff)
downloadrtems-libbsd-bceabc95c1c85d793200446fa85f1ddc6313ea29.tar.bz2
Move files to match FreeBSD layout
Diffstat (limited to 'rtemsbsd/include/machine/rtems-bsd-cache.h')
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-cache.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-cache.h b/rtemsbsd/include/machine/rtems-bsd-cache.h
new file mode 100644
index 00000000..77cc0794
--- /dev/null
+++ b/rtemsbsd/include/machine/rtems-bsd-cache.h
@@ -0,0 +1,37 @@
+/**
+ * @file
+ *
+ * @ingroup rtems_bsd_machine
+ *
+ * @brief TODO.
+ */
+
+/*
+ * Copyright (c) 2010 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Obere Lagerstr. 30
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#ifndef _RTEMS_BSD_MACHINE_RTEMS_BSD_CACHE_H_
+#define _RTEMS_BSD_MACHINE_RTEMS_BSD_CACHE_H_
+
+#include <bsp.h>
+
+#if defined(LIBBSP_ARM_LPC24XX_BSP_H)
+ /* No cache */
+#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
+
+#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_CACHE_H_ */