1. 17 2月, 2015 1 次提交
  2. 24 11月, 2014 1 次提交
    • M
      MIPS: Fix microMIPS LL/SC immediate offsets · b0984c43
      Maciej W. Rozycki 提交于
      In the microMIPS encoding some memory access instructions have their
      immediate offset reduced to 12 bits only.  That does not match the GCC
      `R' constraint we use in some places to satisfy the requirement,
      resulting in build failures like this:
      
      {standard input}: Assembler messages:
      {standard input}:720: Error: macro used $at after ".set noat"
      {standard input}:720: Warning: macro instruction expanded into multiple instructions
      
      Fix the problem by defining a macro, `GCC_OFF12_ASM', that expands to
      the right constraint depending on whether microMIPS or standard MIPS
      code is produced.  Also apply the fix to where `m' is used as in the
      worst case this change does nothing, e.g. where the pointer was already
      in a register such as a function argument and no further offset was
      requested, and in the best case it avoids an extraneous sequence of up
      to two instructions to load the high 20 bits of the address in the LL/SC
      loop.  This reduces the risk of lock contention that is the higher the
      more instructions there are in the critical section between LL and SC.
      
      Strictly speaking we could just bulk-replace `R' with `ZC' as the latter
      constraint adjusts automatically depending on the ISA selected.
      However it was only introduced with GCC 4.9 and we keep supporing older
      compilers for the standard MIPS configuration, hence the slightly more
      complicated approach I chose.
      
      The choice of a zero-argument function-like rather than an object-like
      macro was made so that it does not look like a function call taking the
      C expression used for the constraint as an argument.  This is so as not
      to confuse the reader or formatting checkers like `checkpatch.pl' and
      follows previous practice.
      Signed-off-by: NMaciej W. Rozycki <macro@codesourcery.com>
      Signed-off-by: NSteven J. Hill <Steven.Hill@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/8482/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      b0984c43
  3. 01 2月, 2013 1 次提交
  4. 03 10月, 2012 1 次提交
  5. 08 12月, 2011 1 次提交
  6. 31 3月, 2011 1 次提交
  7. 05 2月, 2011 1 次提交
  8. 17 6月, 2009 1 次提交
    • D
      Staging: Add octeon-ethernet driver files. · 80ff0fd3
      David Daney 提交于
      The octeon-ethernet driver supports the sgmii, rgmii, spi, and xaui
      ports present on the Cavium OCTEON family of SOCs.  These SOCs are
      multi-core mips64 processors with existing support over in arch/mips.
      
      The driver files can be categorized into three basic groups:
      
      1) Register definitions, these are named cvmx-*-defs.h
      
      2) Main driver code, these have names that don't start cvmx-.
      
      3) Interface specific functions and other utility code, names starting
      with cvmx-
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      80ff0fd3