Hi,

Timo Juhani Lindfors <[email protected]> writes:
> 8) (PC) run arm-linux-gnueabi-gdb

That should be

8) (PC) run arm-linux-gnueabi-gdb vmlinux

> 0xc0032864 in s3c2410_cpu_suspend ()
> 0xc0032864 <s3c2410_cpu_suspend+4>:     ldr     r5, [r4, #20]
> 0xc0032868 <s3c2410_cpu_suspend+8>:     orr     r5, r5, #4      ; 0x4
> 0xc003286c <s3c2410_cpu_suspend+12>:    str     r5, [r4, #20]
> (gdb) p $r4
> $3 = 1442840576
> (gdb) p/x $r4
> $4 = 0x56000000
> (gdb) xsi
>   C-c C-cHalt timed out, wake up GDB.

And I guess this fails since leds are not mapped to that address under
linux.

0xc003311c in gta02_gpb_set ()
0xc003311c <gta02_gpb_set+100>: str     r2, [r3, #20]
0xc0033120 <gta02_gpb_set+104>: msr     CPSR_c, lr
0xc0033124 <gta02_gpb_set+108>: ldm     sp, {r4, r5, r6, r11, sp, pc}
(gdb) p/x $r3
$11 = 0xfb000000

shows that the normal LED driver accesses them at a different address.

Reply via email to