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:
2024-04-10 21:11:47 +03:00
parent 3f2e110eab
commit 0184e5beb5
6 changed files with 451 additions and 296 deletions

View File

@@ -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)