Kernel/AML: General cleanup and compliance improvements

This commit is contained in:
2024-08-15 23:14:13 +03:00
parent 75884ca6b8
commit 490a28ee7a
5 changed files with 17 additions and 18 deletions

View File

@@ -51,13 +51,13 @@ namespace Kernel::ACPI::AML
switch (destination->type)
{
case AML::Node::Type::Alias:
static_cast<AML::Alias*>(destination.ptr())->target = source;
static_cast<AML::Alias*>(destination.ptr())->target = source->copy();
return source;
case AML::Node::Type::Name:
static_cast<AML::Name*>(destination.ptr())->object = source;
static_cast<AML::Name*>(destination.ptr())->object = source->copy();
return source;
case AML::Node::Type::Register:
static_cast<AML::Register*>(destination.ptr())->value = source;
static_cast<AML::Register*>(destination.ptr())->value = source->copy();
return source;
default:
ASSERT_NOT_REACHED();