Skip to content
Snippets Groups Projects
  1. Mar 01, 2013
    • Simon Glass's avatar
      sandbox: Add un/map_sysmen() to deal with sandbox's ram_buf · 4213fc29
      Simon Glass authored
      
      Sandbox doesn't actually provide U-Boot access to the machine's physical
      memory. Instead it provides a RAM buffer of configurable size, and all
      memory accesses are within that buffer. Sandbox memory starts at 0 and
      is CONFIG_DRAM_SIZE bytes in size. Allowing access outside this buffer
      might produce unpredictable results in the event of an error, and would
      expose the host machine's memory architecture to the sandbox U-Boot.
      
      Most U-Boot functions assume that they can just access memory at given
      address. For sandbox this is not true.
      
      Add a map_sysmem() call which converts a U-Boot address to a system
      address. In most cases this is a NOP, but for sandbox it returns a
      pointer to that memory inside the RAM buffer.
      
      To get a U-Boot feature to work correctly within sandbox, you should call
      map_sysmem() to get a pointer to the address, and then use that address for
      any U-Boot memory accesses.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      4213fc29
    • Taylor Hutt's avatar
      sandbox: Improve sandbox serial port keyboard interface · e101550a
      Taylor Hutt authored
      
      Implements the tstc() interface for the serial driver.  Multiplexing
      the console between the serial port and a keyboard uses a polling
      method of checking if characters are available; this means that the
      serial console must be non-blocking when attempting to read
      characters.
      
      Signed-off-by: default avatarTaylor Hutt <thutt@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      e101550a
    • Simon Glass's avatar
      Update print_buffer() to use const · bda32ffc
      Simon Glass authored
      
      The buffer cannot be changed by this function, so change the buffer
      pointer to a const. This allows callers with const pointer to use the
      function without a cast.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      bda32ffc
    • Simon Glass's avatar
      Tidy up error checking and fix bug in hash command · 6b3ff98d
      Simon Glass authored
      
      There are two problems:
      
      1. The argument count needs to be checked before argv is used
      2. When verify is not enabled, we need to define a constant zero value
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      6b3ff98d
    • Allen Martin's avatar
      sandbox: fix compiler warning · 8ec21bbe
      Allen Martin authored
      
      Add back return statement to fix compiler warning about control flow
      reaching end of non void function that was introduced with:
      
      	e05e5de7 arm: move C runtime setup code in crt0.S
      
      Signed-off-by: default avatarAllen Martin <amartin@nvidia.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      8ec21bbe
  2. Feb 23, 2013
  3. Feb 22, 2013
  4. Feb 20, 2013
  5. Feb 19, 2013
  6. Feb 18, 2013
  7. Feb 15, 2013
Loading