summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2019-10-25 12:51:53 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2020-10-16 15:35:10 +0200
commit46ce57f1bd917206cd58f5e0b496b5ddeb82a94c (patch)
treed50d857ef0b73195c2a111c2faeca5dfee75cb8d
parent6390dae0527a05039545de71c6920cf1dd37ad5a (diff)
grlib: added 64-bit read no-cache function
-rw-r--r--bsps/include/grlib/grlib_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/bsps/include/grlib/grlib_impl.h b/bsps/include/grlib/grlib_impl.h
index e795e7f844..3bff2af0da 100644
--- a/bsps/include/grlib/grlib_impl.h
+++ b/bsps/include/grlib/grlib_impl.h
@@ -122,6 +122,16 @@ RTEMS_INLINE_ROUTINE unsigned int grlib_read_uncached32(unsigned int address)
return tmp;
}
+RTEMS_INLINE_ROUTINE uint64_t grlib_read_uncached64(uint64_t *address)
+{
+ uint64_t tmp;
+ __asm__ (" ldda [%1]1, %0 "
+ : "=r"(tmp)
+ : "r"(address)
+ );
+ return tmp;
+}
+
#define GRLIB_DMA_IS_CACHE_COHERENT CPU_SPARC_HAS_SNOOPING
#else