CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2009/12/25 14:02:18
Modified files:
sys/arch/mips64/include: cpu.h
sys/arch/mips64/mips64: cache_loongson2.S db_machdep.c pmap.c
sys_machdep.c
sys/arch/sgi/include: autoconf.h bus.h cpu.h
sys/arch/sgi/sgi: bus_dma.c
sys/arch/sgi/xbow: xbridge.c
Log message:
Pass both the virtual address and the physical address of the memory range
when invoking the cache functions. The physical address is needed when
operating on physically-indexed caches, such as the L2 cache on Loongson
processors.
Preprocessor abuse makes sure that the physical address computation gets
compiled out when running on a kernel compiled for virtually-indexed
caches only, such as the sgi kernel.