1. 02 2月, 2008 17 次提交
  2. 01 2月, 2008 1 次提交
  3. 31 1月, 2008 16 次提交
  4. 30 1月, 2008 6 次提交
    • A
      x86: remove iBCS support · 612a95b4
      Andi Kleen 提交于
      ibcs2 support has never been supported on 2.6 kernels as far as I know,
      and if it has it must have been an external patch.  Anyways, if anybody
      applies an external patch they could as well readd the ibcs checking
      code to the ELF loader in the same patch.  But there is no reason to
      keep this code running in all Linux kernels.  This will save at least
      two strcmps each ELF execution.
      
      No deprecation period because it could not have been used anyway.
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      612a95b4
    • R
      x86: compat_binfmt_elf Kconfig · b9d36d5d
      Roland McGrath 提交于
      This adds Kconfig and Makefile bits to build fs/compat_binfmt_elf.c,
      just added.  Each arch that wants to use this file needs to add a
      "select COMPAT_BINFMT_ELF" line in its Kconfig bits that enable COMPAT.
      Signed-off-by: NRoland McGrath <roland@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      b9d36d5d
    • R
      x86: compat_binfmt_elf · 2f79e48a
      Roland McGrath 提交于
      This adds fs/compat_binfmt_elf.c, a wrapper around fs/binfmt_elf.c for
      32-bit ELF support on 64-bit kernels.  It can replace all the hand-rolled
      versions of this that each 32/64 arch has, which are all about the same.
      
      To use this, an arch's asm/elf.h has to define at least a few compat_*
      macros that parallel the various macros that fs/binfmt_elf.c uses for
      native support.
      
      There is no attempt to deal with compat macros for the core dump format
      support.  To use this file, the arch has to define compat_gregset_t for
      linux/elfcore-compat.h and #define CORE_DUMP_USE_REGSET.  The 32-bit
      compatible formats should come automatically from task_user_regset_view
      called on a 32-bit task.
      Signed-off-by: NRoland McGrath <roland@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      2f79e48a
    • R
      elf core dump: notes user_regset · 4206d3aa
      Roland McGrath 提交于
      This modifies the ELF core dump code under #ifdef CORE_DUMP_USE_REGSET.
      It changes nothing when this macro is not defined.  When it's #define'd
      by some arch header (e.g. asm/elf.h), the arch must support the
      user_regset (linux/regset.h) interface for reading thread state.
      
      This provides an alternate version of note segment writing that is based
      purely on the user_regset interfaces.  When CORE_DUMP_USE_REGSET is set,
      the arch need not define macros such as ELF_CORE_COPY_REGS and ELF_ARCH.
      All that information is taken from the user_regset data structures.
      The core dumps come out exactly the same if arch's definitions for its
      user_regset details are correct.
      Signed-off-by: NRoland McGrath <roland@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      4206d3aa
    • R
      elf core dump: notes reorg · 3aba481f
      Roland McGrath 提交于
      This pulls out the code for writing the notes segment of an ELF core dump
      into separate functions.  This cleanly isolates into one cluster of
      functions everything that deals with the note formats and the hooks into
      arch code to fill them.  The top-level elf_core_dump function itself now
      deals purely with the generic ELF format and the memory segments.
      
      This only moves code around into functions that can be inlined away.
      It should not change any behavior at all.
      Signed-off-by: NRoland McGrath <roland@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      3aba481f
    • N
      spinlock: lockbreak cleanup · 95c354fe
      Nick Piggin 提交于
      The break_lock data structure and code for spinlocks is quite nasty.
      Not only does it double the size of a spinlock but it changes locking to
      a potentially less optimal trylock.
      
      Put all of that under CONFIG_GENERIC_LOCKBREAK, and introduce a
      __raw_spin_is_contended that uses the lock data itself to determine whether
      there are waiters on the lock, to be used if CONFIG_GENERIC_LOCKBREAK is
      not set.
      
      Rename need_lockbreak to spin_needbreak, make it use spin_is_contended to
      decouple it from the spinlock implementation, and make it typesafe (rwlocks
      do not have any need_lockbreak sites -- why do they even get bloated up
      with that break_lock then?).
      Signed-off-by: NNick Piggin <npiggin@suse.de>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      95c354fe