On Thu, Apr 05, 2001 at 01:29:13PM -0700, Jun Sun wrote:
> I don't like bc_ops idea. Usually the external cache capability is still
> integral part of the CPU.
How can it be both an integral part of the CPU and board-specific?
Either it's under the direct control of the cpu or it's not. If it
is, that's cpu-specific and handled by the regular cacheops. If it's
not, that's board-specific and is called from a hook into something
which the machine detection has set up.
> I favor the idea where the cache takes care of external cache dynamically,
> based on some parameters set up by board detection routine.
So we end up filling the cache routines with tests for board-specific
stuff? No way. The cache routines should be dependent ONLY on the
CPU - two completely different boards with radically different designs
should be able to use the exact same foo-cache.c if they have the same
CPU. If it's board-specific we can put generic hooks in but testing
for various boards in the cacheops is too expensive and too ugly.
--
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."
|