diff --git a/kernel/thor/system/acpi/pm-interface.cpp b/kernel/thor/system/acpi/pm-interface.cpp index 48bee3f35..ef6015914 100644 --- a/kernel/thor/system/acpi/pm-interface.cpp +++ b/kernel/thor/system/acpi/pm-interface.cpp @@ -56,24 +56,7 @@ struct PmInterfaceBusObject : private KernelBusObject { if (preamble.error()) co_return Error::protocolViolation; - if(preamble.id() == bragi::message_id) { - auto req = bragi::parse_head_only(reqBuffer, *kernelAlloc); - - if (!req) { - infoLogger() << "thor: Closing lane due to illegal HW request." << frg::endlog; - co_return Error::protocolViolation; - } - - auto ret = uacpi_reboot(); - if(uacpi_unlikely_error(ret)) - infoLogger() << "thor: ACPI reset failed: " << uacpi_status_to_string(ret) << frg::endlog; - -#ifdef __x86_64__ - issuePs2Reset(); - infoLogger() << "thor: Reset using PS/2 controller failed" << frg::endlog; -#endif - panicLogger() << "thor: We do not know how to reset" << frg::endlog; - } else if(preamble.id() == bragi::message_id) { + if(preamble.id() == bragi::message_id) { auto req = bragi::parse_head_only(reqBuffer, *kernelAlloc); if(!req) { diff --git a/protocols/hw/hw.bragi b/protocols/hw/hw.bragi index fbceff5ee..22b819adb 100644 --- a/protocols/hw/hw.bragi +++ b/protocols/hw/hw.bragi @@ -98,8 +98,10 @@ message AccessFbMemoryRequest 11 { head(128): } -message PmResetRequest 12 { +message RebootRequest 12 { head(128): + Errors error; + int64 cmd; } message SvrResponse 13 { @@ -121,9 +123,3 @@ tail: tag(8) uint32 fb_type; } } - -message RebootRequest 17 { -head(128): - Errors error; - int64 cmd; -}