* 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
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue