/* arch_hibernation_header_save - populate the architecture specific part of a hibernation image header @addr: address to save the data at  */
int arch_hibernation_header_save(void *addr, unsigned int max_size)
/* arch_hibernation_header_save - populate the architecture specific part of a hibernation image header @addr: address to save the data at  */
int arch_hibernation_header_save(void *addr, unsigned int max_size)
{
	struct restore_data_record *rdr = addr;
	if (max_size < sizeof(struct restore_data_record))
		return -EOVERFLOW;
	rdr->jump_address = restore_jump_address;
	rdr->cr3 = restore_cr3;
	rdr->magic = RESTORE_MAGIC;
	return 0;
}