[PATCH] i386: need to pass virtual address to smp_read_mpc()
[sfrench/cifs-2.6.git] / arch / i386 / kernel / mpparse.c
index 0102f3d50e574fd67184fff730f7f11a77be7b49..e7609abf3796354e3b5ee03e9e8de28c81679a6f 100644 (file)
@@ -710,7 +710,7 @@ void __init get_smp_config (void)
                 * Read the physical hardware table.  Anything here will
                 * override the defaults.
                 */
-               if (!smp_read_mpc((void *)mpf->mpf_physptr)) {
+               if (!smp_read_mpc(phys_to_virt(mpf->mpf_physptr))) {
                        smp_found_config = 0;
                        printk(KERN_ERR "BIOS bug, MP table errors detected!...\n");
                        printk(KERN_ERR "... disabling SMP support. (tell your hw vendor)\n");