summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon2/include/bsp.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-06 00:03:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-06 00:03:14 +0000
commit5982921836cadf985efcff7f52f063055848a4d2 (patch)
tree578e3462b392137e4e827618b54fa8d487250b8e /c/src/lib/libbsp/sparc/leon2/include/bsp.h
parent2007-09-05 Daniel Hellstrom <daniel@gaisler.com> (diff)
downloadrtems-5982921836cadf985efcff7f52f063055848a4d2.tar.bz2
2007-09-05 Daniel Hellstrom <daniel@gaisler.com>
* include/bsp.h: LEON2 and LEON3 Data cache snooping detection on startup, for drivers. (LEON2,3 are configurable processors, they can be with or without DCache snooping. Caches without snooping needs the drivers to flush cache or use the sparc instruction lda to force cache miss...)
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sparc/leon2/include/bsp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon2/include/bsp.h b/c/src/lib/libbsp/sparc/leon2/include/bsp.h
index 7b39beca9c..ce2527014b 100644
--- a/c/src/lib/libbsp/sparc/leon2/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/leon2/include/bsp.h
@@ -68,6 +68,8 @@ extern int rtems_smc91111_driver_attach_leon2(struct rtems_bsdnet_ifconfig *conf
extern void Clock_delay(uint32_t microseconds);
#define delay( microseconds ) Clock_delay(microseconds)
+extern int CPU_SPARC_HAS_SNOOPING;
+
/* Constants */