patch - KGDB read and write of IO registers
Tom,
Please apply the attached patch to linuxppc_2_4_devel.
The patch allows IO device registers to be accessed by KGDB via word (or halfword) loads and stores for word (or halfword) sized objects when naturally aligned. The previous behaviour was to always do byte load and stores which can result in side effects when accessing an IO device register.
A second fix in the patch is to pass the correct address to flush_icache_range() when writing to memory in hex2mem().
Thanks!
-Frank
--
Frank Rowand <[email protected]>
MontaVista Software, Inc
Quoted 8 lines · Frank Rowand
The patch allows IO device registers to be accessed by KGDB via word (or halfword) loads and stores for word (or halfword) sized objects when naturally aligned. The previous behaviour was to always do byte load and stores which can result in side effects when accessing an IO device register.
A second fix in the patch is to pass the correct address to
flush_icache_range()when writing to memory inhex2mem().
Looks good, applied.
--
Tom
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/