mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1511.1.1 (4292617fUY_QU9fABo1c9En_PEDHQA)
fix ARCH=i386 build Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
1 parent
fa16d77058
commit
9ee2098049
1 file changed
+7
-2
@@ -565,6 +565,12 @@ acpi_table_get_sdt (
|
||||
*
|
||||
* result: sdt_entry[] is initialized
|
||||
*/
|
||||
#if CONFIG_XEN
|
||||
#define acpi_rsdp_phys_to_va(rsdp_phys) (__fix_to_virt(FIX_ACPI_RSDP_PAGE) + \
|
||||
(rsdp_phys & ~PAGE_MASK))
|
||||
#else
|
||||
#define acpi_rsdp_phys_to_va(rsdp_phys) __va(rsdp_phys)
|
||||
#endif
|
||||
|
||||
int __init
|
||||
acpi_table_init (void)
|
||||
@@ -581,8 +587,7 @@ acpi_table_init (void)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
rsdp = (struct acpi_table_rsdp *) (__fix_to_virt(FIX_ACPI_RSDP_PAGE) +
|
||||
(rsdp_phys & ~PAGE_MASK));
|
||||
rsdp = (struct acpi_table_rsdp *) acpi_rsdp_phys_to_va(rsdp_phys);
|
||||
if (!rsdp) {
|
||||
printk(KERN_WARNING PREFIX "Unable to map RSDP\n");
|
||||
return -ENODEV;
|
||||
|
||||