]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/lguest/lguest.c
[MIPS] SYNC emulation for MIPS I processors
[mirror_ubuntu-bionic-kernel.git] / drivers / lguest / lguest.c
index ee1c6d05c3d343d4d5f4c3039779eba5d75662ae..4a579c840301fe77539af414e4c4086d97bba5ca 100644 (file)
@@ -893,7 +893,9 @@ static __init char *lguest_memory_setup(void)
 
        /* The Linux bootloader header contains an "e820" memory map: the
         * Launcher populated the first entry with our memory limit. */
-       add_memory_region(E820_MAP->addr, E820_MAP->size, E820_MAP->type);
+       add_memory_region(boot_params.e820_map[0].addr,
+                         boot_params.e820_map[0].size,
+                         boot_params.e820_map[0].type);
 
        /* This string is for the boot messages. */
        return "LGUEST";