1. 20 9月, 2010 7 次提交
    • W
      Add hash table support as base for new environment code · a6826fbc
      Wolfgang Denk 提交于
      This implementation is based on code from uClibc-0.9.30.3 but was
      modified and extended for use within U-Boot.
      
      Major modifications and extensions:
      
      * hsearch() [modified / extended]:
        - While the standard version does not make any assumptions about
          the type of the stored data objects at all, this implementation
          works with NUL terminated strings only.
        - Instead of storing just pointers to the original objects, we
          create local copies so the caller does not need to care about the
          data any more.
        - The standard implementation does not provide a way to update an
          existing entry.  This version will create a new entry or update an
          existing one when both "action == ENTER" and "item.data != NULL".
        - hsearch_r(): Instead of returning 1 on success, we return the
          index into the internal hash table, which is also guaranteed to be
          positive.  This allows us direct access to the found hash table
          slot for example for functions like hdelete().
      * hdelete() [added]:
        - The standard implementation of hsearch(3) does not provide any way
          to delete any entries from the hash table.  We extend the code to
          do that.
      * hexport() [added]:
        - Export the data stored in the hash table in linearized form:
          Entries are exported as "name=value" strings, separated by an
          arbitrary (non-NUL, of course) separator character. This allows to
          use this function both when formatting the U-Boot environment for
          external storage (using '\0' as separator), but also when using it
          for the "printenv" command to print all variables, simply by using
          as '\n" as separator. This can also be used for new features like
          exporting the environment data as text file, including the option
          for later re-import.
        - The entries in the result list will be sorted by ascending key
          values.
      * himport() [added]:
        - Import linearized data into hash table.  This is the inverse
          function to hexport(): it takes a linear list of "name=value"
          pairs and creates hash table entries from it.
        - Entries without "value", i. e. consisting of only "name" or
          "name=", will cause this entry to be deleted from the hash table.
        - The "flag" argument can be used to control the behaviour: when
          the H_NOCLEAR bit is set, then an existing hash table will kept,
          i. e. new data will be added to an existing hash table;
          otherwise, old data will be discarded and a new hash table will
          be created.
        - The separator character for the "name=value" pairs can be
          selected, so we both support importing from externally stored
          environment data (separated by NUL characters) and from plain text
          files (entries separated by newline characters).
        - To allow for nicely formatted text input, leading white space
          (sequences of SPACE and TAB chars) is ignored, and entries
          starting (after removal of any leading white space) with a '#'
          character are considered comments and ignored.
        - NOTE: this means that a variable name cannot start with a '#'
          character.
        - When using a non-NUL separator character, backslash is used as
          escape character in the value part, allowing for example fo
          multi-line values.
        - In theory, arbitrary separator characters can be used, but only
          '\0' and '\n' have really been tested.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      a6826fbc
    • W
      Add qsort - add support for sorting data arrays · 54c6977e
      Wolfgang Denk 提交于
      Code adapted from uClibc-0.9.30.3
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      54c6977e
    • W
      Add basic errno support. · 65cd3fa8
      Wolfgang Denk 提交于
      Needed for hash table support; probably useful in a lot of other
      places as well.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      65cd3fa8
    • W
      4xx: adjust TEXT_BASE to increase U-Boot image size · a2a649d7
      Wolfgang Denk 提交于
      On some boards (canyonlands, luan, sequoia) we need more room for the
      U-Boot image to allow for new features like the new environment code.
      Shift TEXT_BASE as needed.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Acked-by: NStefan Roese <sr@denx.de>
      a2a649d7
    • W
      IceCube.h: update configuration · d2e22731
      Wolfgang Denk 提交于
      Increase malloc size,
      enable command line editing and history,
      enable hush shell.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      d2e22731
    • W
      Cleanup use of CONFIG_SYS_SRAM_BASE and CONFIG_SYS_SRAM_SIZE · 36116650
      Wolfgang Denk 提交于
      Traditionally many boards used local definitions for SRAM base address
      and size (like SRAM_BASE, SRAM_LEN and/or SRAM_SIZE), while the (now)
      "official" names are CONFIG_SYS_SRAM_BASE and CONFIG_SYS_SRAM_SIZE.
      
      The corresponding code in arch/powerpc/lib/board.c was board specific,
      and has never actually been maintained well. Replace this by feature-
      specific code and adapt the boards that actually use this.
      
      NOTE: there is still a ton of boards using the old #defines, which
      therefor contain incorrect values in bi_sramstart and bi_sramsize.
      
      All respective board maintainers are requested to clean up their
      respective configurations.  Thanks.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Josef Wagner <Wagner@Microsys.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      36116650
    • W
      4xx: add missing CONFIG_SYS_SRAM_SIZE definition · bf560807
      Wolfgang Denk 提交于
      A number of boards define CONFIG_SYS_SRAM_BASE but fail to define
      CONFIG_SYS_SRAM_SIZE which is needed when cleaning up the code that
      prints this information with the bdinfo command.
      
      Add the missing deinitions.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Acked-by: NStefan Roese <sr@denx.de>
      bf560807
  2. 19 9月, 2010 9 次提交
  3. 16 9月, 2010 2 次提交
  4. 14 9月, 2010 1 次提交
  5. 13 9月, 2010 5 次提交
    • R
      display_buffer: fix misaligned buffer · 150f7236
      Reinhard Meyer 提交于
      use a union to cause necessary alignment per architecture
      Signed-off-by: NReinhard Meyer <u-boot@emk-elektronik.de>
      150f7236
    • G
      x86: Remove Unmaintained Boards · 215e1cb3
      Graeme Russ 提交于
      The SC520 CDP boards originally implemented by Daniel Engström are now
      very broken. Attempts to contact Daniel via the email address on the
      copyright notice have failed. Remove these boards from mainline
      215e1cb3
    • G
      x86: Fix x86 Cold Boot · 797960fd
      Graeme Russ 提交于
      Commit 077e1958 broke the ability of the
      x86 port to boot from a cold-reset by removing the initial IDT. Re-
      instate the initial IDT to allow cold-booting of x86 boards
      797960fd
    • G
      x86: Add do_bdinfo() · a806ee6f
      Graeme Russ 提交于
      x86 failed to compile with a message "a case for this architecture does
      not exist!" - Add do_bdinfo() for this arch
      a806ee6f
    • G
      x86: Fix do_go_exec() - const argv[] · e69c0cba
      Graeme Russ 提交于
      Commit 54841ab5 made the argv parameter
      to do_go_exec() const but did not allow for the fact that argv[-1] is
      set to point to the global data structure and relies on argv being non-
      const.
      
      With this patch, do_go_exec() creates a new copy of the argv array with
      an extra element to store global data pointer rather than simply
      clobbering an arbitrary memory location.
      e69c0cba
  6. 11 9月, 2010 2 次提交
  7. 10 9月, 2010 4 次提交
  8. 09 9月, 2010 10 次提交