Kernel: AML tries to initialize processors when entering ACPI mode
I had forgotten that Processors used to be a different definition in AML. I also implemented reads/writes for FieldElement/IndexFieldElement that fit in 64 bits. Reads and writes to buffer are still a TODO.
This commit is contained in:
@@ -406,13 +406,8 @@ namespace Kernel::ACPI
|
||||
{
|
||||
auto* scope = static_cast<AML::Scope*>(_sb.ptr());
|
||||
for (auto& [name, object] : scope->objects)
|
||||
{
|
||||
if (object->type == AML::Node::Type::Device)
|
||||
{
|
||||
auto* device = static_cast<AML::Device*>(object.ptr());
|
||||
device->initialize();
|
||||
}
|
||||
}
|
||||
if (object->type == AML::Node::Type::Device || object->type == AML::Node::Type::Processor)
|
||||
AML::initialize_device(object);
|
||||
}
|
||||
|
||||
// Evaluate \\_PIC (mode)
|
||||
|
||||
Reference in New Issue
Block a user