1. 23 7月, 2014 1 次提交
    • S
      sandbox: Remove all drivers before exit · 61336833
      Simon Glass 提交于
      Drivers are supposed to be able to close down cleanly. To set a good example,
      make sandbox shut down its driver model drivers and remove them before exit.
      
      It may be desirable to do the same more generally once driver model is more
      widely-used. This could be done during bootm, before U-Boot jumps to the OS.
      It seems far too early to make this change.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      61336833
  2. 18 3月, 2014 1 次提交
  3. 09 1月, 2014 2 次提交
  4. 24 7月, 2013 1 次提交
  5. 26 6月, 2013 1 次提交
    • S
      sandbox: Support trace feature · e2ee100f
      Simon Glass 提交于
      Support tracing on sandbox by adding suitable CONFIG options. To enable it,
      compile U-Boot with FTRACE=1.
      
      The timer functions are marked to skip tracing, since these are called from
      the tracing code itself, and we want to avoid an infinite loop.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      e2ee100f
  6. 01 5月, 2013 1 次提交
    • S
      sandbox: Provide a way to map from host RAM to U-Boot RAM · 781adb57
      Simon Glass 提交于
      In many cases, pointers to memory are passed around, and these pointers
      refer to U-Boot memory, not host memory. This in itself is not a
      problem.
      
      However, in a few places, we cast that pointer back to a ulong (being
      a U-Boot memory address). It is possible to convert many of these cases
      to avoid this. However there are data structures (e.g. struct
      bootm_headers) which use pointers. We could with a lot of effort adjust
      the structs and all code that uses them to use ulong instead of pointers.
      
      This seems like an unacceptable cost, since our objective with sandbox
      is to minimise the impact on U-Boot code while maximising the features
      available to sandbox.
      
      Therefore, create a map_to_sysmem() function which converts from a
      pointer to a U-Boot address. This can be used sparingly when needed.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      781adb57
  7. 04 2月, 2013 1 次提交
  8. 11 12月, 2011 1 次提交
  9. 18 10月, 2011 2 次提交
  10. 05 7月, 2010 1 次提交
    • W
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk 提交于
      The hush shell dynamically allocates (and re-allocates) memory for the
      argument strings in the "char *argv[]" argument vector passed to
      commands.  Any code that modifies these pointers will cause serious
      corruption of the malloc data structures and crash U-Boot, so make
      sure the compiler can check that no such modifications are being done
      by changing the code into "char * const argv[]".
      
      This modification is the result of debugging a strange crash caused
      after adding a new command, which used the following argument
      processing code which has been working perfectly fine in all Unix
      systems since version 6 - but not so in U-Boot:
      
      int main (int argc, char **argv)
      {
      	while (--argc > 0 && **++argv == '-') {
      /* ====> */	while (*++*argv) {
      			switch (**argv) {
      			case 'd':
      				debug++;
      				break;
      			...
      			default:
      				usage ();
      			}
      		}
      	}
      	...
      }
      
      The line marked "====>" will corrupt the malloc data structures and
      usually cause U-Boot to crash when the next command gets executed by
      the shell.  With the modification, the compiler will prevent this with
      an
      	error: increment of read-only location '*argv'
      
      N.B.: The code above can be trivially rewritten like this:
      
      	while (--argc > 0 && **++argv == '-') {
      		char *arg = *argv;
      		while (*++arg) {
      			switch (*arg) {
      			...
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      54841ab5
  11. 13 4月, 2010 1 次提交
  12. 15 1月, 2008 1 次提交
  13. 27 12月, 2007 1 次提交
  14. 23 9月, 2007 1 次提交
  15. 13 5月, 2007 1 次提交
  16. 02 7月, 2003 1 次提交
  17. 30 6月, 2003 1 次提交
  18. 16 6月, 2003 1 次提交
    • W
      * Fix CONFIG_NET_MULTI support in include/net.h · 71f95118
      wdenk 提交于
      * Patches by Kyle Harris, 13 Mar 2003:
        - Add FAT partition support
        - Add command support for FAT
        - Add command support for MMC
        ----
        - Add Intel PXA support for video
        - Add Intel PXA support for MMC
        ----
        - Enable MMC and FAT for lubbock board
        - Other misc changes for lubbock board
      71f95118
  19. 27 3月, 2003 1 次提交
  20. 14 12月, 2000 1 次提交
  21. 13 11月, 2000 1 次提交