|
@@ -162,7 +162,10 @@ void machine_kexec(struct kimage *image)
|
|
page_list[VA_PTE_0] = (unsigned long)kexec_pte0;
|
|
page_list[VA_PTE_0] = (unsigned long)kexec_pte0;
|
|
page_list[PA_PTE_1] = __pa(kexec_pte1);
|
|
page_list[PA_PTE_1] = __pa(kexec_pte1);
|
|
page_list[VA_PTE_1] = (unsigned long)kexec_pte1;
|
|
page_list[VA_PTE_1] = (unsigned long)kexec_pte1;
|
|
- page_list[PA_SWAP_PAGE] = (page_to_pfn(image->swap_page) << PAGE_SHIFT);
|
|
|
|
|
|
+
|
|
|
|
+ if (image->type == KEXEC_TYPE_DEFAULT)
|
|
|
|
+ page_list[PA_SWAP_PAGE] = (page_to_pfn(image->swap_page)
|
|
|
|
+ << PAGE_SHIFT);
|
|
|
|
|
|
/* The segment registers are funny things, they have both a
|
|
/* The segment registers are funny things, they have both a
|
|
* visible and an invisible part. Whenever the visible part is
|
|
* visible and an invisible part. Whenever the visible part is
|