diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-06 00:03:14 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-06 00:03:14 +0000 |
commit | 5982921836cadf985efcff7f52f063055848a4d2 (patch) | |
tree | 578e3462b392137e4e827618b54fa8d487250b8e /c/src/lib/libbsp/sparc/leon2/include/bsp.h | |
parent | 2007-09-05 Daniel Hellstrom <daniel@gaisler.com> (diff) | |
download | rtems-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.h | 2 |
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 */ |