]> git.sur5r.net Git - openocd/commit
target.cfg: remove "-work-area-virt 0"
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 8 Nov 2009 16:52:40 +0000 (08:52 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 8 Nov 2009 16:52:40 +0000 (08:52 -0800)
commit3e6f9e8d1e65c4da505ff78481d54a115520d3d1
tree71dba7d3285700e802edab7147ea0896d6e149ae
parent2b1bd97508ebaf33c76d4f36ec4bb85592801055
target.cfg: remove "-work-area-virt 0"

The semantics of "-work-area-virt 0" (or phys) changed with
the patch to require specifying physical or virtrual work
area addresses.  Specifying zero was previously a NOP.  Now
it means that address zero is valid.

This patch addresses three related issues:

 - MMU-less processors should never specify work-area-virt;
   remove those specifications.  Such processors include
   ARM7TDMI, Cortex-M3, and ARM966.

 - MMU-equipped processors *can* specify work-area-virt...
   but zero won't be appropriate, except in mischievous
   contexts (which hide null pointer exceptions).

   Remove those specs from those processors too.  If any of
   those mappings is valid, someone will need to submit a
   patch adding it ... along with a comment saying what OS
   provides the mapping, and in which context.  Example,
   say "works with Linux 2.6.30+, in kernel mode".  (Note
   that ARM Linux doesn't map kernel memory to zero ...)

 - Clarify docs on that "-virt" and other work area stuff.

Seems to me work-area-virt is quite problematic; not every
operating system provides such static mappings; if they do,
they're not in every MMU context...

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
45 files changed:
doc/openocd.texi
tcl/board/at91sam9g20-ek.cfg
tcl/board/digi_connectcore_wi-9c.cfg
tcl/board/hitex_str9-comstick.cfg
tcl/board/linksys_nslu2.cfg
tcl/board/mini2440.cfg
tcl/board/pxa255_sst.cfg
tcl/board/str910-eval.cfg
tcl/board/zy1000.cfg
tcl/target/at91eb40a.cfg
tcl/target/at91r40008.cfg
tcl/target/at91rm9200.cfg
tcl/target/at91sam3uXX.cfg
tcl/target/at91sam7sx.cfg
tcl/target/at91sam9260.cfg
tcl/target/at91sam9260_ext_RAM_ext_flash.cfg
tcl/target/cs351x.cfg
tcl/target/epc9301.cfg
tcl/target/imx27.cfg
tcl/target/is5114.cfg
tcl/target/lpc1768.cfg
tcl/target/lpc2103.cfg
tcl/target/lpc2124.cfg
tcl/target/lpc2129.cfg
tcl/target/lpc2148.cfg
tcl/target/lpc2294.cfg
tcl/target/lpc2378.cfg
tcl/target/lpc2478.cfg
tcl/target/mega128.cfg
tcl/target/omap5912.cfg
tcl/target/pic32mx.cfg
tcl/target/pxa270.cfg
tcl/target/sam7se512.cfg
tcl/target/sam7x256.cfg
tcl/target/samsung_s3c2410.cfg
tcl/target/samsung_s3c2440.cfg
tcl/target/stm32.cfg
tcl/target/str710.cfg
tcl/target/str730.cfg
tcl/target/str750.cfg
tcl/target/str912.cfg
tcl/target/tmpa900.cfg
tcl/target/tmpa910.cfg
tcl/target/xba_revA3.cfg
tcl/test/syntax1.cfg