mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
LINUX: x86_64: start_pfn should be initialised even when XENFEAT_auto_translated_physmap is set.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
This commit is contained in:
1 parent
5b3327347f
commit
27c451323a
1 file changed
+3
-5
@@ -105,13 +105,11 @@ void __init x86_64_start_kernel(char * real_mode_data)
|
||||
int i;
|
||||
|
||||
xen_start_info = (struct start_info *)real_mode_data;
|
||||
if (!xen_feature(XENFEAT_auto_translated_physmap)) {
|
||||
if (!xen_feature(XENFEAT_auto_translated_physmap))
|
||||
phys_to_machine_mapping =
|
||||
(unsigned long *)xen_start_info->mfn_list;
|
||||
start_pfn = (__pa(xen_start_info->pt_base) >> PAGE_SHIFT) +
|
||||
xen_start_info->nr_pt_frames;
|
||||
}
|
||||
|
||||
start_pfn = (__pa(xen_start_info->pt_base) >> PAGE_SHIFT) +
|
||||
xen_start_info->nr_pt_frames;
|
||||
|
||||
machine_to_phys_mapping = (unsigned long *)MACH2PHYS_VIRT_START;
|
||||
machine_to_phys_nr_ents = MACH2PHYS_NR_ENTRIES;
|
||||
|
||||