Update messages
This commit is contained in:
parent
929962efc9
commit
3da3fd2c11
@ -30,7 +30,7 @@ static void try_acpi_reboot()
|
||||
kinfoln("The RSDT/XSDT's signature is not RSDT or XSDT");
|
||||
return;
|
||||
}
|
||||
kinfoln("Searching for FACP");
|
||||
kinfoln("Searching for the FADT");
|
||||
ACPI::FADT* fadt = (ACPI::FADT*)ACPI::FindTable(rootSDT, "FACP");
|
||||
if (!fadt)
|
||||
{
|
||||
@ -50,11 +50,13 @@ static void try_acpi_reboot()
|
||||
switch (fadt->ResetReg.AddressSpace)
|
||||
{
|
||||
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);
|
||||
break;
|
||||
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);
|
||||
break;
|
||||
default: kinfoln("This method of rebooting via ACPI is not yet implemented"); return;
|
||||
|
Loading…
Reference in New Issue
Block a user