Update messages

This commit is contained in:
apio 2022-09-08 16:18:11 +02:00
parent 929962efc9
commit 3da3fd2c11

View File

@ -30,7 +30,7 @@ static void try_acpi_reboot()
kinfoln("The RSDT/XSDT's signature is not RSDT or XSDT"); kinfoln("The RSDT/XSDT's signature is not RSDT or XSDT");
return; return;
} }
kinfoln("Searching for FACP"); kinfoln("Searching for the FADT");
ACPI::FADT* fadt = (ACPI::FADT*)ACPI::FindTable(rootSDT, "FACP"); ACPI::FADT* fadt = (ACPI::FADT*)ACPI::FindTable(rootSDT, "FACP");
if (!fadt) if (!fadt)
{ {
@ -50,11 +50,13 @@ static void try_acpi_reboot()
switch (fadt->ResetReg.AddressSpace) switch (fadt->ResetReg.AddressSpace)
{ {
case ACPI::SystemIO: case ACPI::SystemIO:
kinfoln("Attempting reboot via IO"); kinfoln("Attempting ACPI Reset via SystemIO: sending byte %d to port %lx", fadt->ResetValue,
fadt->ResetReg.Address);
IO::outb(fadt->ResetReg.Address, fadt->ResetValue); IO::outb(fadt->ResetReg.Address, fadt->ResetValue);
break; break;
case ACPI::GeneralPurposeIO: case ACPI::GeneralPurposeIO:
kinfoln("Attempting reboot via IO"); kinfoln("Attempting ACPI Reset via GeneralPurposeIO: sending byte %d to port %lx", fadt->ResetValue,
fadt->ResetReg.Address);
IO::outb(fadt->ResetReg.Address, fadt->ResetValue); IO::outb(fadt->ResetReg.Address, fadt->ResetValue);
break; break;
default: kinfoln("This method of rebooting via ACPI is not yet implemented"); return; default: kinfoln("This method of rebooting via ACPI is not yet implemented"); return;