diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2010-04-29 13:48:30 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2010-04-29 13:48:30 +0000 |
commit | 65baaf07a5db9eea322dac5c02f783630761f248 (patch) | |
tree | 861a52049edc3f9a0255bdb367d8f3e593c69e7b /sys/arch/hppa/include | |
parent | 7dc30236662e846932e2f38fd4d67a7f7d7a07d9 (diff) |
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@
Diffstat (limited to 'sys/arch/hppa/include')
-rw-r--r-- | sys/arch/hppa/include/autoconf.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/hppa/include/autoconf.h b/sys/arch/hppa/include/autoconf.h index 9e6d923a8cb..37d8c28a1ce 100644 --- a/sys/arch/hppa/include/autoconf.h +++ b/sys/arch/hppa/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.22 2007/05/27 16:36:07 kettenis Exp $ */ +/* $OpenBSD: autoconf.h,v 1.23 2010/04/29 13:48:29 jsing Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -69,7 +69,8 @@ extern void (*cold_hook)(int); struct device; const char *hppa_mod_info(int, int); -void pdc_scanbus(struct device *, struct confargs *, int, hppa_hpa_t hpa); +void pdc_scanbus(struct device *, struct confargs *, int, hppa_hpa_t hpa, + int); int mbprint(void *, const char *); int mbsubmatch(struct device *, void *, void *); int cpu_intr_findirq(void); |