aboutsummaryrefslogtreecommitdiff
path: root/hw/nseries.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-06-23 17:53:48 +0200
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-07-04 21:58:25 +0200
commit462a8bc6468912b79629f20f18798558342ce315 (patch)
treeebfadf060ddb6b47b9e1e17a24a85b666fd779e1 /hw/nseries.c
parent75ef849696830fc2ddeff8bb90eea5887ff50df6 (diff)
arm: Add const attribute to some arm_boot_info pointers
Parameter 'info' is const, so add the missing attribute. v2: Add 'const' to the local variable info in do_cpu_reset() and to the boot_info field in CPUARMState (suggested by Peter Maydell). Cc: Andrzej Zaborowski <balrogg@gmail.com> Cc: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/nseries.c')
-rw-r--r--hw/nseries.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/nseries.c b/hw/nseries.c
index 2f6f473d64..2f84f5305b 100644
--- a/hw/nseries.c
+++ b/hw/nseries.c
@@ -1254,12 +1254,12 @@ static int n8x0_atag_setup(void *p, int model)
return (void *) w - p;
}
-static int n800_atag_setup(struct arm_boot_info *info, void *p)
+static int n800_atag_setup(const struct arm_boot_info *info, void *p)
{
return n8x0_atag_setup(p, 800);
}
-static int n810_atag_setup(struct arm_boot_info *info, void *p)
+static int n810_atag_setup(const struct arm_boot_info *info, void *p)
{
return n8x0_atag_setup(p, 810);
}