06 Feb, 2008

3 commits

  • init_irq_signals doesn't need to be called from the context of a new process.
    It initializes handlers, which are useless in process context. With that call
    gone, init_irq_signals has only one caller, so it can be inlined into
    init_new_thread_signals.

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • Style fixes in arch/um/os-Linux/irq.c and arch/um/os-Linux/sigio.c:
    Updated copyrights
    trimmed includes
    added severity indicators to printks
    CodingStyle fixes
    turned an bunch of panics into printks
    call some libc functions directly instead of going through the
    os_* wrappers

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • Tidy kern_util.h. It turns out that most of the function declarations
    aren't used, so they can go away. os.h no longer includes
    kern_util.h, so files which got it through os.h now need to include it
    directly. A number of other files never needed it, so these includes
    are deleted.

    The structure which was used to pass signal handlers from the kernel
    side to the userspace side is gone. Instead, the handlers are
    declared here, and used directly from libc code. This allows
    arch/um/os-Linux/trap.c to be deleted, with its remnants being moved
    to arch/um/os-Linux/skas/trap.c.

    arch/um/os-Linux/tty.c had its inclusions changed, and it needed some
    style attention, so it got tidied.

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

17 Oct, 2007

2 commits

  • Now that ITIMER_REAL is no longer used, there is no need for any use of
    SIGALRM whatsoever. This patch removes all mention of it.

    In addition, real_alarm_handler took a signal argument which is now always
    SIGVTALRM. So, that is gone.

    Signed-off-by: Jeff Dike
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • Move timer signal initialization from init_irq_signals to a new function,
    timer_init.

    Signed-off-by: Jeff Dike
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

08 May, 2007

1 commit

  • user_util.h isn't needed any more, so delete it and remove all includes of it.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

12 Feb, 2007

1 commit

  • Tidying the irq code -
    make a variable static
    activate_fd can call kmalloc directly since it's now kernel code
    added a no-locking comment
    fixed a style violation

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

21 Oct, 2006

1 commit


26 Sep, 2006

1 commit

  • Have most signals go through an arch-provided handler which recovers the
    sigcontext and then calls a generic handler. This replaces the
    ARCH_GET_SIGCONTEXT macro, which was somewhat fragile. On x86_64, recovering
    %rdx (which holds the sigcontext pointer) must be the first thing that
    happens. sig_handler duly invokes that first, but there is no guarantee that
    I can see that instructions won't be reordered such that %rdx is used before
    that. Having the arch provide the handler seems much more robust.

    Some signals in some parts of UML require their own handlers - these places
    don't call set_handler any more. They call sigaction or signal themselves.

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

11 Jul, 2006

2 commits

  • os_isatty can be made to disappear by moving maybe_sigio_broken from kernel to
    user code. This also lets write_sigio_workaround become static.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • This cleans up the mess that is the timer initialization. There used to be
    two timer handlers - one that basically ran during delay loop calibration and
    one that handled the timer afterwards. There were also two sets of timer
    initialization code - one that starts in user code and calls into the kernel
    side of the house, and one that starts in kernel code and calls user code.

    This eliminates one timer handler and consolidates the two sets of
    initialization code.

    [akpm@osdl.org: use new INTF_ flags]
    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

02 May, 2006

1 commit


28 Mar, 2006

1 commit