|
@@ -275,7 +275,7 @@ int __init efi_setup_page_tables(unsigned long pa_memmap, unsigned num_pages)
|
|
efi_scratch.phys_stack = virt_to_phys(page_address(page));
|
|
efi_scratch.phys_stack = virt_to_phys(page_address(page));
|
|
efi_scratch.phys_stack += PAGE_SIZE; /* stack grows down */
|
|
efi_scratch.phys_stack += PAGE_SIZE; /* stack grows down */
|
|
|
|
|
|
- npages = (_end - _text) >> PAGE_SHIFT;
|
|
|
|
|
|
+ npages = (_etext - _text) >> PAGE_SHIFT;
|
|
text = __pa(_text);
|
|
text = __pa(_text);
|
|
pfn = text >> PAGE_SHIFT;
|
|
pfn = text >> PAGE_SHIFT;
|
|
|
|
|