Coalesced writes on xscale systems do not always work. If
XSCALE_NO_COALESCE_WRITES is set, disable. Otherwise, enable.
This commit is contained in:
parent
50e0ea7aa2
commit
88452ee2b5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cpufunc.c,v 1.53 2002/08/20 02:00:46 briggs Exp $ */
|
||||
/* $NetBSD: cpufunc.c,v 1.54 2002/08/20 02:30:51 briggs Exp $ */
|
||||
|
||||
/*
|
||||
* arm7tdmi support code Copyright (c) 2001 John Fremlin
|
||||
|
@ -1947,7 +1947,11 @@ xscale_setup(args)
|
|||
/* Make sure write coalescing is turned on */
|
||||
__asm __volatile("mrc p15, 0, %0, c1, c0, 1"
|
||||
: "=r" (auxctl));
|
||||
#if XSCALE_NO_COALESCE_WRITES
|
||||
auxctl |= XSCALE_AUXCTL_K;
|
||||
#else
|
||||
auxctl &= ~XSCALE_AUXCTL_K;
|
||||
#endif
|
||||
__asm __volatile("mcr p15, 0, %0, c1, c0, 1"
|
||||
: : "r" (auxctl));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue