[PATCH-for-11.0 02/13] hw/sh4/r2d: Define BOOT_PARAMS_BASE

Philippe Mathieu-Daudé posted 13 patches 2 months, 2 weeks ago
Maintainers: Yoshinori Sato <yoshinori.sato@nifty.com>, Magnus Damm <magnus.damm@gmail.com>
[PATCH-for-11.0 02/13] hw/sh4/r2d: Define BOOT_PARAMS_BASE
Posted by Philippe Mathieu-Daudé 2 months, 2 weeks ago
Linux expects the boot_params structure at a fixed location.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 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