Skip to contentSkip to conversation

patch - KGDB read and write of IO registers

DISCUSSION Frank Rowand 2 participants 2 messages Dec 21, 2001 – Dec 26, 2001

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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 in hex2mem().

Looks good, applied.

--
Tom

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/