1. 09 10月, 2012 1 次提交
  2. 04 11月, 2011 1 次提交
    • C
      arch/tile: avoid ISO namespace pollution with <asm/sigcontext.h> · e0b1f39d
      Chris Metcalf 提交于
      <asm/sigcontext.h> is used by glibc's <bits/sigcontext.h> from <signal.h>,
      which means that it can't clutter the namespace with random symbols
      or #defines.  However, we use <arch/abi.h> to get a suitable type to
      hold a machine register.
      
      This change makes <arch/abi.h> safe to use in this kind of context
      if __need_int_reg_t is defined prior to including the file; in that
      case, it only defines a few symbols that are safe in the ISO namespace
      (prefixed with double underscores).  <asm/sigcontext.h> then uses
      the __uint_reg_t type instead of the normal uint_reg_t.
      Signed-off-by: NChris Metcalf <cmetcalf@tilera.com>
      e0b1f39d
  3. 15 9月, 2010 1 次提交
    • C
      arch/tile: Change struct sigcontext to be more useful · 74fca9da
      Chris Metcalf 提交于
      Rather than just using pt_regs, it now contains the actual saved
      state explicitly, similar to pt_regs.  By doing it this way, we
      provide a cleaner API for userspace (or equivalently, we avoid the
      need for libc to provide its own definition of sigcontext).
      
      While we're at it, move PT_FLAGS_xxx to where they are not visible
      from userspace.  And always pass siginfo and mcontext to signal
      handlers, even if they claim they don't need it, since sometimes
      they actually try to use it anyway in practice.
      Signed-off-by: NChris Metcalf <cmetcalf@tilera.com>
      74fca9da
  4. 05 6月, 2010 1 次提交