cvs commit: src/sys/dev/acpica acpi.c acpi_resource.c
Nate Lawson
njl at FreeBSD.org
Sun May 7 03:28:11 UTC 2006
njl 2006-05-07 03:28:10 UTC
FreeBSD src repository
Modified files:
sys/dev/acpica acpi.c acpi_resource.c
Log:
Don't attach special devices in the order they appear in the AML tree.
If the embedded controller exists before the sysresource devices, for
example, it will be attached first. Instead, let the normal device
order function work as we first desired. [1]
There still remained a problem where we couldn't allocate resources in
acpi0 that were passed up by the sysresource pseudo-devices. These
devices had to probe/attach first to give their resources to acpi, then
acpi would allocate them before probing/attaching other devices. To
work around this, we attach them from acpi_sysres_alloc(). A better
approach would be to implement multi-pass probe/attach in newbus but
that's a much bigger task.
Suggested by: jhb [1]
Hardware from: Centaur Technologies
MFC after: 1 week
Revision Changes Path
1.223 +25 -17 src/sys/dev/acpica/acpi.c
1.39 +1 -1 src/sys/dev/acpica/acpi_resource.c
More information about the cvs-src
mailing list