[rtems commit] grlib: added 64-bit read no-cache function

Daniel Hellstrom danielh at rtems.org
Thu Mar 11 16:51:34 UTC 2021


Module:    rtems
Branch:    master
Commit:    b98d6b67f68b9c973c88f1452666477d19d6eafe
Changeset: http://git.rtems.org/rtems/commit/?id=b98d6b67f68b9c973c88f1452666477d19d6eafe

Author:    Daniel Hellstrom <daniel at gaisler.com>
Date:      Fri Oct 25 12:51:53 2019 +0200

grlib: added 64-bit read no-cache function

Update #4324.

---

 bsps/include/grlib/grlib_impl.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/bsps/include/grlib/grlib_impl.h b/bsps/include/grlib/grlib_impl.h
index e795e7f..3bff2af 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



More information about the vc mailing list