CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2012/08/18 10:00:21
Modified files:
sys/arch/loongson/dev: pcib.c
Log message:
glxpcib(4) invokes pcibattach assuming pcib doesn't need more than a
`struct device' as its softc. This is not the case on loongson, and the
glxpcib softc gets subtly corrupted, causing a kernel panic when attempting
to select the glxpcib timecounter as the current timecounter.
Skirt this by not using the pcib softc fields if we are invoked from
glxpcib - it is not really worth putting pcib_softc in a header for the sake
of MI glxpcib code.