1. 13 Jul, 2011 1 commit
    • Jon Medhurst's avatar
      ARM: Thumb-2: Support Thumb-2 in undefined instruction handler · 592201a9
      Jon Medhurst authored
      This patch allows undef_hook's to be specified for 32-bit Thumb
      instructions and also to be used for thumb kernel-side code.
      32-bit Thumb instructions are specified in the form:
      	((first_half << 16 ) | second_half)
      which matches the layout used by the ARM ARM.
      ptrace was handling 32-bit Thumb instructions by hooking the first
      halfword and manually checking the second half. This method would be
      broken by this patch so it is migrated to make use of the new Thumb-2
      Signed-off-by: default avatarJon Medhurst <tixy@yxit.co.uk>
      Acked-by: default avatarNicolas Pitre <nicolas.pitre@linaro.org>
  2. 14 May, 2011 1 commit
  3. 23 Feb, 2011 1 commit
    • Will Deacon's avatar
      ARM: 6668/1: ptrace: remove single-step emulation code · 425fc47a
      Will Deacon authored
      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: default avatarNicolas Pitre <nicolas.pitre@linaro.org>
      Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
  4. 08 Sep, 2010 1 commit
  5. 15 Aug, 2010 1 commit
  6. 09 Jul, 2010 1 commit
  7. 12 Mar, 2010 1 commit
    • Christoph Hellwig's avatar
      arm: use generic ptrace_resume code · 440e6ca7
      Christoph Hellwig authored
      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: default avatarChristoph 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: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
  8. 08 Jan, 2010 1 commit
  9. 24 Jul, 2009 1 commit
    • Paul Brook's avatar
      nommu: ptrace support · 68b7f715
      Paul Brook authored
      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: default avatarPaul Brook <paul@codesourcery.com>
  10. 30 May, 2009 2 commits
    • Catalin Marinas's avatar
      Add core support for ARMv6/v7 big-endian · 26584853
      Catalin Marinas authored
      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
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    • Catalin Marinas's avatar
      Clear the IT state when invoking a Thumb-2 signal handler · d71e1352
      Catalin Marinas authored
      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: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Cc: Joseph S. Myers <joseph@codesourcery.com>
  11. 12 Feb, 2009 1 commit
  12. 06 Sep, 2008 1 commit
  13. 02 Aug, 2008 1 commit
  14. 25 Jul, 2008 1 commit
  15. 12 Jul, 2007 2 commits
  16. 18 Jun, 2007 1 commit
    • Russell King's avatar
      [ARM] Update show_regs/oops register format · 154c772e
      Russell King authored
      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
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
  17. 06 May, 2007 1 commit
  18. 28 Jun, 2006 1 commit
  19. 26 Apr, 2006 1 commit
  20. 14 Jan, 2006 2 commits
  21. 17 Apr, 2005 1 commit
  22. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      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!