1. 23 9月, 2010 1 次提交
  2. 16 9月, 2010 1 次提交
  3. 14 9月, 2010 2 次提交
  4. 18 8月, 2010 1 次提交
    • D
      Make do_execve() take a const filename pointer · d7627467
      David Howells 提交于
      Make do_execve() take a const filename pointer so that kernel_execve() compiles
      correctly on ARM:
      
      arch/arm/kernel/sys_arm.c:88: warning: passing argument 1 of 'do_execve' discards qualifiers from pointer target type
      
      This also requires the argv and envp arguments to be consted twice, once for
      the pointer array and once for the strings the array points to.  This is
      because do_execve() passes a pointer to the filename (now const) to
      copy_strings_kernel().  A simpler alternative would be to cast the filename
      pointer in do_execve() when it's passed to copy_strings_kernel().
      
      do_execve() may not change any of the strings it is passed as part of the argv
      or envp lists as they are some of them in .rodata, so marking these strings as
      const should be fine.
      
      Further kernel_execve() and sys_execve() need to be changed to match.
      
      This has been test built on x86_64, frv, arm and mips.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Tested-by: NRalf Baechle <ralf@linux-mips.org>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d7627467
  5. 16 8月, 2010 2 次提交
  6. 14 8月, 2010 1 次提交
  7. 04 8月, 2010 1 次提交
  8. 14 7月, 2010 1 次提交
  9. 06 7月, 2010 5 次提交
  10. 02 7月, 2010 1 次提交
    • P
      sh: Provide a global TLB flush for U/I-TLB clear. · 59615ecd
      Paul Mundt 提交于
      This provides a sledgehammer approach for clearing the TLBs, only to be
      used in cases where we know we will never want to use the mappings again
      and have no interest in preserving state. This also destroys wired
      entries.
      
      The primary use for this is when we are either entering or exiting the
      kernel completely, in the latter case as a precursor for CPU reset by
      MMU.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      59615ecd
  11. 17 6月, 2010 1 次提交
  12. 14 6月, 2010 2 次提交
    • P
      sh: kprobes SMP support. · 57fcfdf9
      Paul Mundt 提交于
      Presently kprobes support relies on several saved opcode variables for
      saving and restoring state, without any specific locking. This is
      inherently racy on SMP, and given that we already use per-CPU variables
      for everything else, convert these over too.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      57fcfdf9
    • P
      sh: Add kprobe-based event tracer. · eaaaeef3
      Paul Mundt 提交于
      This follows the x86/ppc changes for kprobe-based event tracing on sh.
      While kprobes is only supported on 32-bit sh, we provide the API for
      HAVE_REGS_AND_STACK_ACCESS_API for both 32 and 64-bit.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      eaaaeef3
  13. 09 6月, 2010 1 次提交
  14. 02 6月, 2010 1 次提交
    • P
      sh: support for platforms without PIO. · 86e4dd5a
      Paul Mundt 提交于
      This extends some of the existing special casing for HAS_IOPORT
      platforms and gets it to the point where platforms can begin to
      conditionally select it.
      
      The major changes here are that the PIO routines themselves go away
      completely, including all of the machvec port mapping wrappers. With this
      in place it's possible for any non-machvec abusing platform to disable
      PIO completely. At present this is left as an opt-in until the abusers
      are the odd ones out instead of the majority.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      86e4dd5a
  15. 28 5月, 2010 1 次提交
  16. 25 5月, 2010 1 次提交
    • P
      sh: handle early calls to return_address() when using dwarf unwinder. · 8a37f520
      Paul Mundt 提交于
      The dwarf unwinder ties in to an early initcall, but it's possible that
      return_address() calls will be made prior to that. This implements some
      additional error handling in to the dwarf unwinder as well as an exit
      path in the return_address() case to bail out if the unwinder hasn't come
      up yet.
      
      This fixes a NULL pointer deref in early boot when mempool_alloc() blows
      up on the not-yet-ready mempool via dwarf_unwind_stack().
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      8a37f520
  17. 22 5月, 2010 6 次提交
  18. 21 5月, 2010 1 次提交
  19. 18 5月, 2010 1 次提交
  20. 13 5月, 2010 9 次提交