No subject
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 <[email protected]>:
Quoted 23 lines
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_divisorHere 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 =3Dgd->temp;
(gdb) p/x a
$1 =3D0x0
(gdb) s
^C
Program received signal SIGINT, Interrupt.0x00014010in ?? ()
Quoted 5 lines
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 =3D0x40203df0, flags =3D 1, baudrate =3D 115200, have_console=
=3D 0,
Quoted 1 line
env_addr=3D 0,env_valid=3D 0,fb_base=3D 0,timer_rate_hz=3D 0, tbl =
=3D 0,
Quoted 1 line
tbu =3D 0,
timer_reset_value=3D 0, lastinc =3D 0, relocaddr =3D 0, ram_s=
ize =3D
Quoted 1 line
0,
mon_len=3D 0,irq_sp=3D 0,start_addr_sp=3D 0,reloc_off=3D 0, tlb=
_addr
Quoted 7 lines
=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