1. 15 5月, 2011 1 次提交
  2. 24 2月, 2011 1 次提交
    • W
      ARM: 6668/1: ptrace: remove single-step emulation code · 425fc47a
      Will Deacon 提交于
      PTRACE_SINGLESTEP is a ptrace request designed to offer single-stepping
      support to userspace when the underlying architecture has hardware
      support for this operation.
      
      On ARM, we set arch_has_single_step() to 1 and attempt to emulate hardware
      single-stepping by disassembling the current instruction to determine the
      next pc and placing a software breakpoint on that location.
      
      Unfortunately this has the following problems:
      
      1.) Only a subset of ARMv7 instructions are supported
      2.) Thumb-2 is unsupported
      3.) The code is not SMP safe
      
      We could try to fix this code, but it turns out that because of the above
      issues it is rarely used in practice.  GDB, for example, uses PTRACE_POKETEXT
      and PTRACE_PEEKTEXT to manage breakpoints itself and does not require any
      kernel assistance.
      
      This patch removes the single-step emulation code from ptrace meaning that
      the PTRACE_SINGLESTEP request will return -EIO on ARM. Portable code must
      check the return value from a ptrace call and handle the failure gracefully.
      Acked-by: NNicolas Pitre <nicolas.pitre@linaro.org>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      425fc47a
  3. 08 9月, 2010 1 次提交
  4. 16 8月, 2010 1 次提交
  5. 09 7月, 2010 1 次提交
  6. 13 3月, 2010 1 次提交
    • C
      arm: use generic ptrace_resume code · 440e6ca7
      Christoph Hellwig 提交于
      Use the generic ptrace_resume code for PTRACE_SYSCALL, PTRACE_CONT,
      PTRACE_KILL and PTRACE_SINGLESTEP.  This implies defining
      arch_has_single_step in <asm/ptrace.h> and implementing the
      user_enable_single_step and user_disable_single_step functions, which also
      causes the breakpoint information to be cleared on fork, which could be
      considered a bug fix.
      
      Also the TIF_SYSCALL_TRACE thread flag is now cleared on PTRACE_KILL which
      it previously wasn't and the single stepping disable only happens if the
      tracee process isn't a zombie yet, which is consistent with all
      architectures using the modern ptrace code.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Roland McGrath <roland@redhat.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      440e6ca7
  7. 09 1月, 2010 1 次提交
  8. 24 7月, 2009 1 次提交
    • P
      nommu: ptrace support · 68b7f715
      Paul Brook 提交于
      The patch below adds ARM ptrace functions to get the process load address.
      This is required for useful userspace debugging on mmuless systems.  These
      values are obtained by reading magic offsets with PTRACE_PEEKUSR, as on other
      nommu targets. I picked arbitrary large values for the offsets.
      Signed-off-by: NPaul Brook <paul@codesourcery.com>
      68b7f715
  9. 30 5月, 2009 2 次提交
    • C
      Add core support for ARMv6/v7 big-endian · 26584853
      Catalin Marinas 提交于
      Starting with ARMv6, the CPUs support the BE-8 variant of big-endian
      (byte-invariant). This patch adds the core support:
      
      - setting of the BE-8 mode via the CPSR.E register for both kernel and
        user threads
      - big-endian page table walking
      - REV used to rotate instructions read from memory during fault
        processing as they are still little-endian format
      - Kconfig and Makefile support for BE-8. The --be8 option must be passed
        to the final linking stage to convert the instructions to
        little-endian
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      26584853
    • C
      Clear the IT state when invoking a Thumb-2 signal handler · d71e1352
      Catalin Marinas 提交于
      If a process is interrupted during an If-Then block and a signal is
      invoked, the ITSTATE bits must be cleared otherwise the handler would
      not run correctly.
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      Cc: Joseph S. Myers <joseph@codesourcery.com>
      d71e1352
  10. 12 2月, 2009 1 次提交
  11. 06 9月, 2008 1 次提交
  12. 03 8月, 2008 1 次提交
  13. 26 7月, 2008 1 次提交
  14. 12 7月, 2007 2 次提交
  15. 18 6月, 2007 1 次提交
    • R
      [ARM] Update show_regs/oops register format · 154c772e
      Russell King 提交于
      Add the kernel release and version information to the output of
      show_regs/oops.  Add the CPU PSR register.  Avoid using printk
      to output partial lines; always output a complete line.
      
      Re-combine the "Control" and "Table + DAC" lines after nommu
      separated them; we don't want to waste vertical screen space
      needlessly.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      154c772e
  16. 06 5月, 2007 1 次提交
  17. 29 6月, 2006 1 次提交
  18. 26 4月, 2006 1 次提交
  19. 15 1月, 2006 2 次提交
  20. 17 4月, 2005 2 次提交
    • R
      [PATCH] ARM: showregs · 652a12ef
      Russell King 提交于
      Fix show_regs() to provide a backtrace.  Provide a new __show_regs()
      function which implements the common subset of show_regs() and die().
      Add prototypes to asm-arm/system.h
      Signed-off-by: NRussell King <rmk@arm.linux.org.uk>
      652a12ef
    • 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