* grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
synonym to _S5_. Needed for some DSDTs.
This commit is contained in:
parent
c32b51c9f9
commit
6c8d300275
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
|
||||
synonym to _S5_. Needed for some DSDTs.
|
||||
|
||||
2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Userspace ACPI parser debugging.
|
||||
|
|
|
@ -175,11 +175,12 @@ get_sleep_type (grub_uint8_t *table, grub_uint8_t *end)
|
|||
break;
|
||||
case GRUB_ACPI_OPCODE_NAME:
|
||||
ptr++;
|
||||
if (memcmp (ptr, "_S5_", 4) == 0)
|
||||
if (memcmp (ptr, "_S5_", 4) == 0 || memcmp (ptr, "\\_S5_", 4) == 0)
|
||||
{
|
||||
int ll;
|
||||
grub_uint8_t *ptr2 = ptr;
|
||||
ptr2 += 4;
|
||||
grub_dprintf ("acpi", "S5 found\n");
|
||||
ptr2 += skip_name_string (ptr, end);
|
||||
if (*ptr2 != 0x12)
|
||||
{
|
||||
grub_printf ("Unknown opcode in _S5: 0x%x\n", *ptr2);
|
||||
|
|
Loading…
Reference in a new issue