File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 31
31
#include <asm/mmu.h>
32
32
#include <asm/mpspec.h>
33
33
#include <asm/realmode.h>
34
+ #include <asm/x86_init.h>
34
35
35
36
#ifdef CONFIG_ACPI_APEI
36
37
# include <asm/pgtable_types.h>
@@ -133,6 +134,12 @@ static inline bool acpi_has_cpu_in_madt(void)
133
134
return !!acpi_lapic ;
134
135
}
135
136
137
+ #define ACPI_HAVE_ARCH_GET_ROOT_POINTER
138
+ static inline u64 acpi_arch_get_root_pointer (void )
139
+ {
140
+ return x86_init .acpi .get_root_pointer ();
141
+ }
142
+
136
143
#else /* !CONFIG_ACPI */
137
144
138
145
#define acpi_lapic 0
Original file line number Diff line number Diff line change @@ -130,6 +130,14 @@ struct x86_hyper_init {
130
130
void (* init_mem_mapping )(void );
131
131
};
132
132
133
+ /**
134
+ * struct x86_init_acpi - x86 ACPI init functions
135
+ * @get_root_pointer: get RSDP address
136
+ */
137
+ struct x86_init_acpi {
138
+ u64 (* get_root_pointer )(void );
139
+ };
140
+
133
141
/**
134
142
* struct x86_init_ops - functions for platform specific setup
135
143
*
@@ -144,6 +152,7 @@ struct x86_init_ops {
144
152
struct x86_init_iommu iommu ;
145
153
struct x86_init_pci pci ;
146
154
struct x86_hyper_init hyper ;
155
+ struct x86_init_acpi acpi ;
147
156
};
148
157
149
158
/**
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ int __init iommu_init_noop(void) { return 0; }
30
30
void iommu_shutdown_noop (void ) { }
31
31
bool __init bool_x86_init_noop (void ) { return false; }
32
32
void x86_op_int_noop (int cpu ) { }
33
+ u64 u64_x86_init_noop (void ) { return 0 ; }
33
34
34
35
/*
35
36
* The platform setup functions are preset with the default functions
@@ -91,6 +92,10 @@ struct x86_init_ops x86_init __initdata = {
91
92
.x2apic_available = bool_x86_init_noop ,
92
93
.init_mem_mapping = x86_init_noop ,
93
94
},
95
+
96
+ .acpi = {
97
+ .get_root_pointer = u64_x86_init_noop ,
98
+ },
94
99
};
95
100
96
101
struct x86_cpuinit_ops x86_cpuinit = {
You can’t perform that action at this time.
0 commit comments