[PATCH 1/4] am33xx_generic: convert from switch to if/else
Jan Lübbe
jlu at pengutronix.de
Wed Oct 2 16:04:14 EDT 2013
On Wed, 2013-10-02 at 21:45 +0200, Lucas Stach wrote:
> Am Mittwoch, den 02.10.2013, 21:30 +0200 schrieb Jan Luebbe:
> > The function am33xx_get_cpu_rev may be called before barebox_arm_entry(),
> > so we need to avoid switch statements.
>
> Uhm, could you please be more verbose on _why_ we need to avoid switch
> statements at this stage? I might be running into the same failure with
> Tegra at some point if there's a real issue.
I believe the problem is that the table is accessed using absolute
addresses. Before the call to barebox_arm_entry() barebox may be running
at a different address.
Regards,
Jan
More information about the barebox
mailing list