1. 09 Nov, 2009 12 commits
    • David Brownell's avatar
      Revert "target: add target->type->has_mmu fn" · 7269ba5e
      David Brownell authored
      This patch introduced a bug preventing flash writes from working
      on Cortex-M3 targets like the STM32.  Moreover, it's the wrong
      approach for handling no-MMU targets.
      The right way to handle no-MMU targets is to provide accessors
      for physical addresses, and use them everywhere; and any code
      which tries to work with virtual-to-physical mappings should use
      a identity mapping (which can be defaulted).
      And ... we can tell if a target has an MMU by seeing if it's
      got an mmu() method.  No such methood means no MMU.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    • David Brownell's avatar
      finish removing deprecated/obsolete commands · d70d9634
      David Brownell authored
      It's been about a year since these were deprecated and, in most
      cases, removed.  There's no point in carrying that documentation,
      or backwards compatibility for "jtag_device" and "jtag_speed",
      around forever.  (Or a few remnants of obsolete code...)
      Removed a few obsolete uses of "jtag_speed":
       - The Calao stuff hasn't worked since July 2008.  (Those Atmel
         targets need to work with a 32KHz core clock after reset until
         board-specific init-reset code sets up the PLL and enables a
         faster JTAg clock.)
       - Parport speed controls don't actually work (tops out at about
         1 MHz on typical HW).
       - In general, speed controls need to live in board.cfg files (or
         sometimes target.cfg files), not interface.cfg ...
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    • David Brownell's avatar
      User's Guide: Flash/NAND doc tweaks · 9253ce9b
      David Brownell authored
      Rename the "Drivers, Options, and Commands" sections to be
      just "Driver List" matching the earlier reference.  Add an
      example of parallel CFI flash.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    • Zachary T Welch's avatar
      src/target: remove 'extern' and wrap headers · 3885ab5a
      Zachary T Welch authored
      Remove extern keywords from function prototypes and wrap long lines.
    • Zachary T Welch's avatar
      target.h: remove extern keyword and wrap · 42cafc93
      Zachary T Welch authored
      Removes 'extern' keyword from function prototypes and wraps long lines.
    • Zachary T Welch's avatar
      src/{server,pld,svf,xsvf}: remove 'extern' keyword · 994a63c3
      Zachary T Welch authored
      Removes 'extern' keyword from function declarations in header filess.
    • Zachary T Welch's avatar
      src/flash: remove 'extern' and wrap headers · 81fbc637
      Zachary T Welch authored
      Removes 'extern' keywords from function prototypes in the flash headers.
      Wraps long lines to fit into 80 columns.
      Adds multiple inclusion protection for s3c2xx_nand.h.
    • Zachary T Welch's avatar
      src/jtag: remove 'extern' and wrap headers. · 5e9d18f0
      Zachary T Welch authored
      Removes the 'extern' keyword from function declarations.
      Wraps long prototypes to fit into 80 columns.
      Fixes documentation for jtag_tap_s::{,has}idcode fields.
    • Zachary T Welch's avatar
      src/helper: wrap and clean headers. · 1712d783
      Zachary T Welch authored
      Remove all useless 'extern' keywords from function prototypes.
      Wraps long lines for readability.
    • David Brownell's avatar
      User's Guide: bugfix global state info · 4882647f
      David Brownell authored
      The "$ocd_HOSTOS" variable was wrongly documented.  Fix its
      documentation, and its value on Linux.
      Shrink a few of the too-long lines.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    • David Brownell's avatar
      EmbeddedICE: minor cleanups · 526347f9
      David Brownell authored
      Add comments (Doxygen and normal), remove unused code,
      shrink some overlong lines.  Get rid of a forward decl.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    • Zachary T Welch's avatar
      Overhaul time support API · 2689f58f
      Zachary T Welch authored
      This patch changes the duration_* API in several ways.  First, it
      updates the API to use better names.  Second, string formatting has
      been removed from the API (with its associated malloc).  Finally, a
      new function added to convert the time into seconds, which can be
      used (or formatted) by the caller.  This eliminates hidden calls to
      malloc that require associated calls to free().
      This patch also removes the useless extern keyword from prototypes,
      and it eliminates the duration_t typedef (use 'struct duration').
      These API also allows proper error checking, as it is possible for
      gettimeofday to fail in certain circumstances.
      The consumers have all been chased to use this new API as well, as
      there were relatively few cases doing this type of measurement.
      In most cases, the code performs additional checks for errors, but
      the calling code looks much cleaner in every case.
  2. 08 Nov, 2009 5 commits
    • Zachary T Welch's avatar
      Add private header for ARM11 internals. · da3196bf
      Zachary T Welch authored
      Reduces confusion about location of associated routines and
      reduces clutter in the arm11 header.
      Removes extra whitespace around the lines touched by these changes.
    • Zachary T Welch's avatar
      ARM11: remove exports and forward decls · e41147bf
      Zachary T Welch authored
      Unneeded exports cause confusion about the module interfaces.
      Make almost everything static in the arm11.c module.
    • David Brownell's avatar
      ARM: minor simulator cleanup · b2d01a9e
      David Brownell authored
      Make several functions be static.  Shrink some of the overlong
      lines.  Use pure tab indents in some places that mixed in spaces.
      This gives a minor object code shrink (about 2% on amd64).
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    • David Brownell's avatar
    • David Brownell's avatar
      target.cfg: remove "-work-area-virt 0" · 3e6f9e8d
      David Brownell authored
      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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
  3. 07 Nov, 2009 1 commit
  4. 06 Nov, 2009 22 commits