1. 08 12月, 2017 17 次提交
  2. 07 12月, 2017 20 次提交
  3. 06 12月, 2017 3 次提交
    • P
      tools: omapimage: fix corner-case in byteswap path · c8e1ca3e
      Philipp Tomsich 提交于
      Since commit 2614a208 ("common: command: tempory buffer should
      have size of command line buf"), there have been consistent Travis CI
      failures on my builds (interestingly not for Tom, even though building
      the same commit id) due to a SEGV in building the byteswapped
      omapimage:
           	    arm: pcm051_rev3
           make[2]: *** [MLO.byteswap] Error 139
           	      	  		       ^^^ error code for a SEGV
      
      Turns out that the word-based byte-swapping loop in omapimage.c is to
      blame. With the loop condition
             while (swapped <= (sbuf->st_size / sizeof(uint32_t)))
      there had been one-too-many iterations for all file sizes divisible by
      the sizeof(uint32_t).  I.e. we had 1 iteration for 0 bytes (and also 1
      through 3 bytes) and 2 iterations at 4 bytes... clearly overshooting
      on 0 and 4 bytes.
      
      This commit fixes the calculation of an up-rounded word-count and
      makes sure to keep the zero-based loop-counter below the number of
      words to be processed.
      
      References: 2614a208 ("common: command: tempory buffer should have size of command line buf")
      Fixes: 79b9ebb7 ("omapimage: Add support for byteswapped SPI images")
      Signed-off-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
      Reviewed-by: NMartin Elshuber <martin.elshuber@theobroma-systems.com>
      c8e1ca3e
    • T
      Merge tag 'signed-efi-next' of git://github.com/agraf/u-boot · 9188c431
      Tom Rini 提交于
      Patch queue for efi - 2017-12-05
      
      Highlights for this release:
      
        - Dynamic EFI object creation (lists instead of static arrays)
        - EFI selftest improvements
        - Minor fixes
      9188c431
    • A
      efi_stub: Use efi_uintn_t · bb0bb91c
      Alexander Graf 提交于
      Commit f5a2a938 ("efi_loader: consistently use efi_uintn_t in boot
      services") changed the internal EFI API header without adapting its existing
      EFI stub users. Let's adapt the EFI stub as well.
      
      Fixes: f5a2a938 ("efi_loader: consistently use efi_uintn_t in boot services")
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Reviewed-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      bb0bb91c