|
@@ -108,7 +108,7 @@ static inline int sparc_leon3_snooping_enabled(void)
|
|
{
|
|
{
|
|
u32 cctrl;
|
|
u32 cctrl;
|
|
__asm__ __volatile__("lda [%%g0] 2, %0\n\t" : "=r"(cctrl));
|
|
__asm__ __volatile__("lda [%%g0] 2, %0\n\t" : "=r"(cctrl));
|
|
- return (cctrl >> 23) & 1;
|
|
|
|
|
|
+ return ((cctrl >> 23) & 1) && ((cctrl >> 17) & 1);
|
|
};
|
|
};
|
|
|
|
|
|
static inline void sparc_leon3_disable_cache(void)
|
|
static inline void sparc_leon3_disable_cache(void)
|