Skip to content
Snippets Groups Projects
  1. Nov 13, 2009
    • Zachary T Welch's avatar
      jtag_tap_t -> struct jtag_tap · 42ef503d
      Zachary T Welch authored
      Search and destroy the jtag_tap_t typedef.  This also cleans up a
      layering violation, removing the declaration from types.h.
      42ef503d
    • Zachary T Welch's avatar
      fileio_t -> struct fileio · 9f212b01
      Zachary T Welch authored
      Remove useless structure typedef.
      9f212b01
    • Zachary T Welch's avatar
      log_callback_t -> struct log_callback · f59ec204
      Zachary T Welch authored
      Removes useless and confusing typedef for log callback structure.
      Types with _t should be suitable for passing by-value as arguments.
      f59ec204
    • Zachary T Welch's avatar
      command_handler_t: make cmd an indirect parameter · f973320c
      Zachary T Welch authored
      This patch removes 'cmd' from the list of direct parameters, moving
      that pointer to args[-1] (by way of the new CMD_NAME macro).
      f973320c
    • Zachary T Welch's avatar
      command_handler_t: make args parameter const · deede35c
      Zachary T Welch authored
      This patch prevents command handlers from modifying the strings passed
      in the 'args' array.
      deede35c
    • Zachary T Welch's avatar
      command_handler_t: make cmd parameter const · cc63d6e7
      Zachary T Welch authored
      Prevents the command name from being modified in command handlers.
      Again, this has cascading effects, but the patches are fairly minimal.
      cc63d6e7
    • Zachary T Welch's avatar
      command_handler_t: make argc unsigned · d22270e0
      Zachary T Welch authored
      The number of command arguments will always be 0 or more, so use
      the right type in handlers.  This has a cascading effect up through
      the layers, but the new COMMAND_HANDLER macros prevented total chaos.
      d22270e0
    • Zachary T Welch's avatar
      add CMD_NAME macro for command handlers · a585bdf7
      Zachary T Welch authored
      By introducing the CMD_NAME macro, this parameter may be integrated
      as args[-1] in command.[ch], without touching any other call sites.
      a585bdf7
    • Zachary T Welch's avatar
      cfc4d5c6
    • Zachary T Welch's avatar
      add command_handler_t type · ddb6138e
      Zachary T Welch authored
      This patch adds new typedefs for command handler callback functions.
      Users of this type signature were updated to use these new types.
      It uses the new __COMMAND_HANDLER macro to prevent duplication.
      ddb6138e
    • Zachary T Welch's avatar
      add COMMAND_HANDLER and COMMAND_HELPER macros · 3f9fd4e2
      Zachary T Welch authored
      The COMMAND_HANDLER and COMMAND_HELPER macros allow commands to be
      defined in a manner that decouples them from the exact order and type of
      their parameters.  Once converted, incremental changes to the command
      handler type can be addressed in incremental patches that do not need to
      touch the entire tree.
      
      These macros' implementation, __COMMAND_HANDLER, is used to define the
      new command_handler_t type, and additional patches will use it to derive
      new macros to define extended command types (e.g. flash, nand, pld).
      The CALL_COMMAND_HANDLER provides a means of calling helpers or nested
      handlers from withing a command handler.
      
      This patch uses C99 varadic macro expansion.  Please report compilers
      that cannot handle this code.
      3f9fd4e2
    • Zachary T Welch's avatar
      add command_output_handler_t · 1ae4d93c
      Zachary T Welch authored
      Add a typedef for command output handler function type, simplifying
      the appearance of functions that use it and eliminating duplicate code.
      1ae4d93c
  2. Nov 11, 2009
  3. Nov 10, 2009
  4. Nov 09, 2009
    • 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.
      1712d783
    • 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>
      4882647f
    • 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.
      2689f58f
  5. Nov 06, 2009
  6. Oct 30, 2009
  7. Oct 21, 2009
  8. Oct 19, 2009
    • Redirect 'Slash' NIL's avatar
      corrective fix for MinGW GNU C99 printf compliance · 113679ff
      Redirect 'Slash' NIL authored
      Compilation on cygwin, using gcc v3 with option -mno-cygwin,
      currently produces a large number of the following warnings:
      
         warning: `gnu_printf' is an unrecognized format function type
      
      These have been introduced with the recent MinGW GNU C99 printf
      compliance patch, as gnu_printf was only introduced with gcc v4.4
      and is not recognized with earlier versions.
      
      The attached fix adds gcc version detection to the previous patch
      to avoid the problem.
      113679ff
    • oyvind's avatar
      Sync with official Jim Tcl repository. · 557d1b64
      oyvind authored
      557d1b64
  9. Oct 18, 2009
  10. Oct 17, 2009
    • Redirect \"Slash\" NIL's avatar
      jim-eventloop for MinGW-w64 · c9fbfbd9
      Redirect \"Slash\" NIL authored
      Use JIM_WIDE_MODIFIER for the sscanf format, and apply it for MINGW32 as
      well as other Windows environments.  (Microsoft doesn't conform to the
      C99 standard, and uses "%I64d" not "%lld" for "long long".)
      
      NB: __MINGW32__ should work on both w32 and w64,.
      c9fbfbd9
  11. Oct 16, 2009
    • David Brownell's avatar
      xscale: better fix for debug_handler.bin · cb7965da
      David Brownell authored
      
      Generate a C struct with the data, and use that, instead of an
      assembly language file.  The assembly language causes issues on
      Darwin and MS-Windows, which don't necessarily use GNU AS; or
      if they do, don't necessarily use its ELF syntax.
      
      It's also better in two other ways:  fewer global symbols; and
      the init-time size check gets optimized away at compile time.
      (Unless it fails, in which case bigger chunks of the file vanish.)
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      cb7965da
  12. Oct 15, 2009
  13. Oct 14, 2009
    • David Brownell's avatar
      doc updates to match "help" better · bc792857
      David Brownell authored
      
      This makes the documentation a closer match to "help" output:
      
       - "pathmove" somehow was not documented in the User's Guide
      
       - "jtag_nsrst_assert_width" and "jtag_ntrst_assert_width"
         are new; both needed descriptions.
      
       - Removed two undocumented and fairly useless script mechanisms:
          * production/production_info/production_test ... using it,
            requires replacing everything; so having it adds no value.
          * cpu ... way out of date; hopeless to keep that current
      
      Note that anyone using that "production" stuff already defines
      their own procedures, and can keep using them with no change.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      bc792857
  14. Oct 13, 2009
Loading