acpi_drv: use expanding reporter

This makes the driver work on newer machines that produce reports larger
than 16 KiB. E.g., Sculpt OS boots successfully on a Lenovo P53s laptop
now.
This commit is contained in:
Norman Feske 2021-04-12 17:13:07 +02:00
parent dc89ebf978
commit e28709d54d

View File

@ -1474,11 +1474,9 @@ void Acpi::generate_report(Genode::Env &env, Genode::Allocator &alloc)
/* parse table */
Acpi_table acpi_table(env, alloc);
enum { REPORT_SIZE = 4 * 4096 };
static Reporter acpi(env, "acpi", "acpi", REPORT_SIZE);
acpi.enabled(true);
static Expanding_reporter acpi(env, "acpi", "acpi");
Genode::Reporter::Xml_generator xml(acpi, [&] () {
acpi.generate([&] (Genode::Xml_generator &xml) {
acpi_table.generate_reset_info(xml);