grlib: added 64-bit read no-cache function

Update #4307.
This commit is contained in:
Daniel Hellstrom
2019-10-25 12:51:53 +02:00
parent 7db032cf02
commit e1062fae3c

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