CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2010/04/29 07:48:29
Modified files: sys/arch/hppa/hppa: autoconf.c mainbus.c sys/arch/hppa/include: autoconf.h sys/arch/hppa/dev: astro.c dino.c phantomas.c uturn.c sys/arch/hppa/gsc: gscbus.c Log message: Currently pdc_scanbus() scans in reverse, which results in physical CPU0 attaching as cpu1 and physical CPU1 attaching as cpu0. Split the device scan into two parts - the first pass scans forward and attaches memory and CPUs, whilst the second pass scans in reverse attaching the remaining devices, thus preserving current semantics. Found the hard way whilst trying to spin up the secondary CPU on my j6750. ok miod@ kettenis@