/* Do what every setup is needed on image and the reboot code buffer to allow us to avoid allocations later.  */
int machine_kexec_prepare(struct kimage *image)
/* Do what every setup is needed on image and the reboot code buffer to allow us to avoid allocations later.  */
int machine_kexec_prepare(struct kimage *image)
{
	void *control_code_buffer;
	const unsigned long *func;
	func = (unsigned long *)&relocate_new_kernel;
	control_code_buffer = page_address(image->control_code_page);
	memcpy((void *)control_code_buffer, (const void *)func[0],
			relocate_new_kernel_size);
	flush_icache_range((unsigned long)control_code_buffer,
			(unsigned long)control_code_buffer + relocate_new_kernel_size);
	ia64_kimage = image;
	return 0;
}