No subject
Fri Jan 23 11:48:37 CET 2009
value - and on ARM r8 is used to point to gd - tada.
I will test that and report back.
Regards
Simon
2011/6/14 Simon Schwarz <simonschwarzcor at googlemail.com>:
> Hi again,
>
> seems that there is a problem with gd - at least your test breaks...
>
> I added unsigned long temp at the end of gd.
>
> And added
> unsigned long a=3D0;
> a=3Dgd->temp;
> gd->temp =3D 4;
>
> to calc_divisor
>
> Here is a part of the debugging session:
> Breakpoint 1, calc_divisor (port=3D<optimized out>) at serial.c:171
> 171 =A0 =A0 =A0 =A0 =A0 =A0 a =3D gd->temp;
> (gdb) p/x a
> $1 =3D 0x0
> (gdb) s
> ^C
> Program received signal SIGINT, Interrupt.
> 0x00014010 in ?? ()
>
> had to use Strg+C to get back a gdb prompt.
>
> But if do: p *gd
> The output seems to be ok (for this stage of the SPL):
> $3 =3D {bd =3D 0x40203df0, flags =3D 1, baudrate =3D 115200, have_console=
=3D 0,
> env_addr =3D 0, env_valid =3D 0, fb_base =3D 0, timer_rate_hz =3D 0, tbl =
=3D 0,
> tbu =3D 0, timer_reset_value =3D 0, lastinc =3D 0, relocaddr =3D 0, ram_s=
ize =3D
> 0, mon_len =3D 0, irq_sp =3D 0, start_addr_sp =3D 0, reloc_off =3D 0, tlb=
_addr
> =3D 0, jt =3D 0x0, env_buf =3D '\000' <repeats 31 times>, temp =3D 0}
>
> Ideas? A Problem with the linker script maybe?
>
> Regards
> Simon
>
More information about the U-Boot
mailing list