/* arch_hibernation_header_restore - read the architecture specific data from the hibernation image header @addr: address to read the data from  */
int arch_hibernation_header_restore(void *addr)
/* arch_hibernation_header_restore - read the architecture specific data from the hibernation image header @addr: address to read the data from  */
int arch_hibernation_header_restore(void *addr)
{
	struct restore_data_record *rdr = addr;
	restore_jump_address = rdr->jump_address;
	restore_cr3 = rdr->cr3;
	return (rdr->magic == RESTORE_MAGIC) ? 0 : -EINVAL;
}