On 21/01/2019 11:16, Jiri Gaisler wrote:
On 1/21/19 7:26 AM, Sebastian Huber wrote:
On 18/01/2019 23:34, Jiri Gaisler wrote:
    */
   -extern int   CPU_SPARC_HAS_SNOOPING;
+extern int   GRLIB_DMA_IS_CACHE_COHERENT;
I would leave the SPARC BSPs as is. Maybe someone uses this 
CPU_SPARC_HAS_SNOOPING in external drivers or whatever. I would use the 
GRLIB_DMA_IS_CACHE_COHERENT only in the grlib and place something like this in 
grlib_impl.h:

#include <bsp.h>

#ifdef __sparc__
#define GRLIB_DMA_IS_CACHE_COHERENT CPU_SPARC_HAS_SNOOPING
#else
#define GRLIB_DMA_IS_CACHE_COHERENT 1
#endif

OK, I will fix this. I will skip '#include <bsp.h>' as it creates problems in 
grlib/mem/mctrl.c (redefinition of struct mctrl_regs). However, since 
CPU_SPARC_HAS_SNOOPING is defined in bsp.h, any external driver that uses 
CPU_SPARC_HAS_SNOOPING already include bsp.h ...



This double definition of struct mctrl_regs should be fixed at some time.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to