Kernel: ACPI add \_OS string

This commit is contained in:
Bananymous 2024-06-25 23:24:19 +03:00
parent f671ed7e3f
commit 0179f5ea09
1 changed files with 4 additions and 0 deletions

View File

@ -226,6 +226,10 @@ namespace Kernel::ACPI
};
ASSERT(s_root_namespace->add_named_object(context, AML::NameString("\\_OSI"), osi));
auto os_string = MUST(BAN::RefPtr<AML::String>::create("banan-os"_sv));
auto os = MUST(BAN::RefPtr<AML::Name>::create("_OS"_sv, os_string));
ASSERT(s_root_namespace->add_named_object(context, AML::NameString("\\_OS"), os));
return s_root_namespace;
}