grlib: added 64-bit read no-cache function

Update #4324.
This commit is contained in:
Daniel Hellstrom
2021-03-11 17:31:21 +01:00
parent 65237ba01d
commit b98d6b67f6
+10
View File
@@ -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