File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 6
6
#include <asm/io_apic.h>
7
7
#include <asm/hypervisor.h>
8
8
#include <asm/e820/api.h>
9
+ #include <asm/x86_init.h>
9
10
10
11
#include <asm/xen/interface.h>
11
12
#include <asm/xen/hypercall.h>
16
17
/*
17
18
* PVH variables.
18
19
*
19
- * xen_pvh and pvh_bootparams need to live in data segment since they
20
- * are used after startup_{32|64}, which clear .bss, are invoked.
20
+ * xen_pvh pvh_bootparams and pvh_start_info need to live in data segment
21
+ * since they are used after startup_{32|64}, which clear .bss, are invoked.
21
22
*/
22
23
bool xen_pvh __attribute__((section (".data" ))) = 0 ;
23
24
struct boot_params pvh_bootparams __attribute__((section (".data" )));
25
+ struct hvm_start_info pvh_start_info __attribute__((section (".data" )));
24
26
25
- struct hvm_start_info pvh_start_info ;
26
27
unsigned int pvh_start_info_sz = sizeof (pvh_start_info );
27
28
29
+ static u64 pvh_get_root_pointer (void )
30
+ {
31
+ return pvh_start_info .rsdp_paddr ;
32
+ }
33
+
28
34
static void __init init_pvh_bootparams (void )
29
35
{
30
36
struct xen_memory_map memmap ;
@@ -71,6 +77,8 @@ static void __init init_pvh_bootparams(void)
71
77
*/
72
78
pvh_bootparams .hdr .version = 0x212 ;
73
79
pvh_bootparams .hdr .type_of_loader = (9 << 4 ) | 0 ; /* Xen loader */
80
+
81
+ x86_init .acpi .get_root_pointer = pvh_get_root_pointer ;
74
82
}
75
83
76
84
/*
You can’t perform that action at this time.
0 commit comments