Linux expects the boot_params structure at a fixed location.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
 hw/sh4/r2d.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c
index 56da48f64cb..5f8c034e1af 100644
--- a/hw/sh4/r2d.c
+++ b/hw/sh4/r2d.c
@@ -53,6 +53,7 @@
 
 #define SM501_VRAM_SIZE 0x800000
 
+#define BOOT_PARAMS_BASE 0x0c000000
 #define BOOT_PARAMS_OFFSET 0x0010000
 /* CONFIG_BOOT_LINK_OFFSET of Linux kernel */
 #define LINUX_LOAD_OFFSET  0x0800000
@@ -383,7 +384,7 @@ static void r2d_init(MachineState *machine)
     }
 
     rom_add_blob_fixed("boot_params", &boot_params, sizeof(boot_params),
-                       SDRAM_BASE + BOOT_PARAMS_OFFSET);
+                       BOOT_PARAMS_BASE + BOOT_PARAMS_OFFSET);
 }
 
 static void r2d_machine_init(MachineClass *mc)
-- 
2.51.0


Reply via email to