/* 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)
{
	int error;
	set_pages_x(image->control_code_page, 1);
	error = machine_kexec_alloc_page_tables(image);
	if (error)
		return error;
	machine_kexec_prepare_page_tables(image);
	return 0;
}