Skip to content
Snippets Groups Projects
  1. Feb 01, 2016
  2. Jan 16, 2016
  3. Jan 30, 2015
  4. Jan 21, 2015
  5. Nov 27, 2014
  6. Nov 09, 2013
    • Paul Burton's avatar
      qemu-malta: rename to just "malta" · 7a9d109b
      Paul Burton authored
      
      This is in preparation for adapting this board to function correctly on
      a physical MIPS Malta board. The board is moved into an "imgtec" vendor
      directory at the same time in order to ready us for any other boards
      supported by Imagination in the future.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      7a9d109b
  7. Jul 24, 2013
  8. Feb 12, 2013
  9. Jan 30, 2013
    • Gabor Juhos's avatar
      MIPS: simplify relocated _G_O_T_ address calculation · 025f2b33
      Gabor Juhos authored
      
      The difference between the address of the original
      and the relocated _GLOBAL_OFFSET_TABLE_ is always
      the same as the relocation offset.
      
      The relocation offset is already computed and it is
      available in the 's1/t6' register. Use that to adjust
      the relocated _G_O_T_ address, instead of calculating
      the offset again from the _gp value.
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      Cc: Xiangfu Liu <xiangfu@openmobilefree.net>
      025f2b33
  10. Jan 27, 2013
    • Gabor Juhos's avatar
      MIPS: start.S: don't save flush_cache parameters in advance · 67d80c9f
      Gabor Juhos authored
      
      Saving the parameters in advance unnecessarily complicates
      the code. The destination address is already saved in the
      's2' register, and that register is not clobbered by the
      copy loop. The size of the copied data can be computed
      after the copy loop is done.
      
      Change the code to compute the size parameter right
      before calling flush_cache, and set the destination
      address parameter in the delay slot of the actuall
      call.
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      67d80c9f
    • Gabor Juhos's avatar
      MIPS: start.S: simplify relocation offset calculation · 248fe03f
      Gabor Juhos authored
      
      The current code uses four instructions and a
      temporary register to calculate the relocation
      offset and to adjust the gp register.
      
      The relocation offset can be calculated directly
      from the CONFIG_SYS_MONITOR_BASE constant and from
      the destination address. The resulting offset can
      be used to adjust the gp pointer.
      
      This approach makes the code a bit simpler because
      it needs two instructions only.
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      248fe03f
    • Gabor Juhos's avatar
      MIPS: start.S: save reused arguments earlier in relocate_code · b2fe86f8
      Gabor Juhos authored
      
      Save the reused parameters at the beginning
      of the 'relocate_code' function. This makes
      the function a bit more readable.
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      b2fe86f8
    • Gabor Juhos's avatar
      MIPS: start.S: set sp register directly · f321b0f9
      Gabor Juhos authored
      
      The current code uses two instructions to load
      the stack pointer into the 'sp' register.
      
      This results in the following assembly code:
      
          468:   3c088040        lui     t0,0x8040
          46c:   251d0000        addiu   sp,t0,0
      
      The first instuction loads the stack pointer into
      the 't0' register then the value of the 'sp' register
      is computed by adding zero to the value of the 't0'
      register. The same issue present on the 64-bit version
      as well:
      
          56c:   3c0c8040        lui     t0,0x8040
          570:   659d0000        daddiu  sp,t0,0
      
      Change the code to load the stack pointer directly
      into the 'sp' register. The generated code is functionally
      equivalent to the previous version but it is simpler.
      
        32-bit:
          468:   3c1d8040        lui     sp,0x8040
      
        64-bit:
          56c:   3c1d8040        lui     sp,0x8040
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      f321b0f9
    • Gabor Juhos's avatar
      MIPS: start.S: fix boundary check in relocate_code · 5b7dd816
      Gabor Juhos authored
      
      The loop code copies more data with one than
      necessary due to the 'ble' instuction. Use the
      'blt' instruction instead to fix that.
      
      Due to the lack of suitable hardware the Xburst
      specific code is compile tested only. However the
      change is quite obvious.
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      5b7dd816
  11. Jan 22, 2013
    • Gabor Juhos's avatar
      MIPS: start{, 64}.S: fill branch delay slots with NOP instructions · 14fdd1a8
      Gabor Juhos authored
      
      The romReserved and romExcHandle handlers are
      accessed by a branch instruction however the
      delay slots of those instructions are not filled.
      
      Because the start.S uses the 'noreorder' directive,
      the assembler will not fill the delay slots either,
      and leads to the following assembly code:
      
        0000056c <romReserved>:
         56c:   1000ffff        b       56c <romReserved>
      
        00000570 <romExcHandle>:
         570:   1000ffff        b       570 <romExcHandle>
      
      In the resulting code, the second branch instruction
      is placed into the delay slot of the first branch
      instruction, which is not allowed on the MIPS
      architecture.
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      14fdd1a8
  12. Jul 31, 2011
  13. May 06, 2011
  14. Apr 02, 2011
  15. Oct 26, 2010
    • Wolfgang Denk's avatar
      Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value · 25ddd1fb
      Wolfgang Denk authored
      
      CONFIG_SYS_GBL_DATA_SIZE has always been just a bad workarond for not
      being able to use "sizeof(struct global_data)" in assembler files.
      Recent experience has shown that manual synchronization is not
      reliable enough.  This patch renames CONFIG_SYS_GBL_DATA_SIZE into
      GENERATED_GBL_DATA_SIZE which gets automatically generated by the
      asm-offsets tool.  In the result, all definitions of this value can be
      deleted from the board config files.  We have to make sure that all
      files that reference such data include the new <asm-offsets.h> file.
      
      No other changes have been done yet, but it is obvious that similar
      changes / simplifications can be done for other, related macro
      definitions as well.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarKumar Gala <galak@kernel.crashing.org>
      25ddd1fb
  16. Apr 13, 2010
  17. Dec 10, 2008
  18. Oct 18, 2008
  19. Jun 05, 2008
  20. May 20, 2008
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      53677ef1
  21. May 05, 2008
Loading