1. 20 11月, 2014 2 次提交
  2. 27 3月, 2014 7 次提交
  3. 09 5月, 2013 1 次提交
    • S
      MIPS: microMIPS: Disable LL/SC and fix linker bug. · 1658f914
      Steven J. Hill 提交于
      Partially revert commit e0c14a260d66ba35935600d6435940a566fe806b
      and turn off LL/SC when building a pure microMIPS kernel. This is
      a temporary fix until the cmpxchg assembly macro functions are
      re-written to not use the HI/LO registers in address calculations.
      
      Also add .insn in selected user access functions which would
      otherwise produce ISA mode jump incompatibilities. This is also a
      temporary fix.
      Signed-off-by: NSteven J. Hill <Steven.Hill@imgtec.com>
      1658f914
  4. 08 5月, 2013 1 次提交
  5. 01 2月, 2013 1 次提交
  6. 23 7月, 2012 1 次提交
  7. 30 10月, 2010 1 次提交
    • D
      MIPS: Make TASK_SIZE reflect proper size for both 32 and 64 bit processes. · 949e51be
      David Daney 提交于
      The TASK_SIZE macro should reflect the size of a user process virtual
      address space.  Previously for 64-bit kernels, this was not the case.
      The immediate cause of pain was in
      hugetlbfs/inode.c:hugetlb_get_unmapped_area() where 32-bit processes
      trying to mmap a huge page would be served a page with an address
      outside of the 32-bit address range.  But there are other uses of
      TASK_SIZE in the kernel as well that would like an accurate value.
      
      The new definition is nice because it now makes TASK_SIZE and
      TASK_SIZE_OF() yield the same value for any given process.
      
      For 32-bit kernels there should be no change, although I did factor
      out some code in asm/processor.h that became identical for the 32-bit and
      64-bit cases.
      
      __UA_LIMIT is now set to ~((1 << SEGBITS) - 1) for 64-bit kernels.
      This should eliminate the possibility of getting a
      AddressErrorException in the kernel for addresses that pass the
      access_ok() test.
      
      With the patch applied, I can still run o32, n32 and n64 processes,
      and have an o32 shell fork/exec both n32 and n64 processes.
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      To: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/1701/
      949e51be
  8. 22 5月, 2009 1 次提交
  9. 14 5月, 2009 3 次提交
  10. 11 10月, 2008 3 次提交
  11. 29 1月, 2008 1 次提交
    • M
      [MIPS] R4000/R4400 daddiu erratum workaround · 619b6e18
      Maciej W. Rozycki 提交于
       This complements the generic R4000/R4400 errata workaround code and adds 
      bits for the daddiu problem.  In most places it just modifies handwritten 
      assembly code so that the assembler is allowed to use a temporary register 
      as daddiu may now be treated as a macro that expands to a sequence of li 
      and daddu.  It is the AT register or, where AT is unavailable or used 
      explicitly for another purpose, an explicitly-named register is selected, 
      using the .set at=<reg> feature added recently to gas.  This feature is 
      only used if CONFIG_CPU_DADDI_WORKAROUNDS has been set, so if the 
      workaround remains disabled, the required version of binutils stays 
      unchanged.
      
       Similarly, daddiu instructions put in branch delay slots in noreorder 
      fragments are now taken out of them and the assembler is allowed to 
      reorder them itself as possible (which it does making the whole idea of 
      scheduling them into delay slots manually questionable).
      
       Also in the very few places where such a simple conversion was not 
      possible, a handcoded longer sequence is implemented.
      
       Other than that there are changes to code responsible for building the 
      TLB fault and page clear/copy handlers to avoid daddiu as appropriate.  
      These are only effective if the erratum is verified to be present at the 
      run time.
      
       Finally there is a trivial update to __delay(), because it uses daddiu in 
      a branch delay slot.
      Signed-off-by: NMaciej W. Rozycki <macro@linux-mips.org>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      619b6e18
  12. 12 10月, 2007 2 次提交
  13. 07 3月, 2007 1 次提交
  14. 20 2月, 2007 1 次提交
    • R
      [MIPS] Fixup copy_from_user_inatomic · e03b5269
      Ralf Baechle 提交于
      From the 01408c49 log message:
      
      The problem is that when we write to a file, the copy from userspace to
      pagecache is first done with preemption disabled, so if the source
      address is not immediately available the copy fails *and* *zeros* *the*
      *destination*.
      
      This is a problem because a concurrent read (which admittedly is an odd
      thing to do) might see zeros rather that was there before the write, or
      what was there after, or some mixture of the two (any of these being a
      reasonable thing to see).
      
      If the copy did fail, it will immediately be retried with preemption
      re-enabled so any transient problem with accessing the source won't
      cause an error.
      
      The first copying does not need to zero any uncopied bytes, and doing
      so causes the problem.  It uses copy_from_user_atomic rather than
      copy_from_user so the simple expedient is to change copy_from_user_atomic
      to *not* zero out bytes on failure.
      
      < --- end cite --- >
      
      This patch finally implements at least a not so pretty solution by
      duplicating the relevant part of __copy_user.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      e03b5269
  15. 14 2月, 2007 3 次提交
  16. 11 2月, 2007 1 次提交
  17. 07 2月, 2007 1 次提交
  18. 26 4月, 2006 1 次提交
  19. 22 2月, 2006 1 次提交
  20. 15 2月, 2006 1 次提交
    • R
      [MIPS] More uaccess.h fixes with gcc >= 4.0.1. · 3218357c
      Ralf Baechle 提交于
          
      From Richard Sandiford <richard@codesourcery.com>:
          
      This patch caused a miscompilation of the restore_gp_regs() block
      in restore_sigcontext().  This was in a 32-bit kernel compiled with
      GCC CVS head.
          
      restore_gp_regs() copies 64-bit user fields into 32-bit variables,
      and in this combination, the new __get_user_asm_ll32() clobbers too
      many registers.  It says:
          
      /*
       * Get a long long 64 using 32 bit registers.
       */
      {									\
      	__asm__ __volatile__(						\
      	"1:	lw	%1, (%3)				\n"	\
      	"2:	lw	%D1, 4(%3)				\n"	\
      	"	move	%0, $0					\n"	\
      	"3:	.section	.fixup,\"ax\"			\n"	\
      	"4:	li	%0, %4					\n"	\
      	"	move	%1, $0					\n"	\
      	"	move	%D1, $0					\n"	\
      	"	j	3b					\n"	\
      	"	.previous					\n"	\
      	"	.section	__ex_table,\"a\"		\n"	\
      	"	" __UA_ADDR "	1b, 4b				\n"	\
      	"	" __UA_ADDR "	2b, 4b				\n"	\
      	"	.previous					\n"	\
      	: "=r" (__gu_err), "=&r" (val)					\
      	: "0" (0), "r" (addr), "i" (-EFAULT));				\
      }
      
      and this requires val (%1) to be a 64-bit value.  In the case I saw,
      gcc was using $3 for the 32-bit val, and wasn't expecting $4 to be
      clobbered.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      3218357c
  21. 07 2月, 2006 1 次提交
  22. 30 10月, 2005 2 次提交
  23. 08 9月, 2005 1 次提交
  24. 05 9月, 2005 1 次提交
  25. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4