Rework management of the external L2 cache on the few Indy/Indigo2 systems
authormiod <miod@openbsd.org>
Thu, 17 Jul 2014 19:51:58 +0000 (19:51 +0000)
committermiod <miod@openbsd.org>
Thu, 17 Jul 2014 19:51:58 +0000 (19:51 +0000)
commitdc0969855e9f491891933e441941a4562b40c336
tree0f482d0fa91b433128dd6855bf15fff979bc47dc
parentd75966d53f573c91e959db79e7d3171b19c0beeb
Rework management of the external L2 cache on the few Indy/Indigo2 systems
which have it.

Instead of implementing external L2 maintainance at the cache routine level,
let bus_dmamap_sync(9) know about the possible existence of an external L2,
and invoke a dedicated routine to perform the necessary cache operations.

This way, the external L2 dmamap_sync function pointer can get invoked with
the physical address to operate on; this saves the pmap_extract() calls the
previous cache routine had to do.
sys/arch/sgi/sgi/bus_dma.c
sys/arch/sgi/sgi/ip22.h
sys/arch/sgi/sgi/ip22_machdep.c