1. 20 4月, 2006 2 次提交
  2. 11 4月, 2006 2 次提交
  3. 01 4月, 2006 7 次提交
  4. 28 3月, 2006 5 次提交
  5. 25 2月, 2006 2 次提交
  6. 08 2月, 2006 1 次提交
  7. 02 2月, 2006 1 次提交
  8. 19 1月, 2006 8 次提交
  9. 15 1月, 2006 1 次提交
  10. 12 1月, 2006 1 次提交
    • J
      [PATCH] uml: fix missing KBUILD_BASENAME · 4ee189a9
      Jeff Dike 提交于
      2.6.15-mm1 caused kernel-offsets.c to stop compiling with a syntax error in a
      header.  The problem was with KBUILD_BASENAME, which didn't get a definition
      with the by-hand compilation in the main UML Makefile.
      
      This was OK before since the expansion was syntactically the same as the
      KBUILD_BASENAME token.  With -mm1, the expansion is now a quote-delimited
      string, so there needs to be a definition of it.
      
      Since kernel-offsets.c is basically the same as other arches' asm-offsets.c,
      and those seem to build OK, this patch turns kernel-offsets.c into
      asm-offsets.c.  kernel-offsets.c is in arch/um/sys-$(SUBARCH), i.e.  sys-i386
      and sys-x86_64, while kbuild expects it to be in arch/um/kernel.
      kernel-offsets.c is moved to
      arch/um/include/sysdep-$(SUBARCH)/kernel-offsets.h, which is included by
      arch/um/kernel/asm-offsets.c.  With that, include/asm-um/asm-offsets.h is
      generated automatically.  kernel-offsets.h continues to exist because it needs
      to be accessible to userspace UML code, and include/asm-um isn't.  So, a
      symlink is made from arch/um/include/kernel-offsets.h to
      include/asm-um/asm-offsets.h.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      4ee189a9
  11. 09 1月, 2006 2 次提交
  12. 07 1月, 2006 8 次提交
    • J
      [PATCH] uml: add mconsole_reply variant with length param · 7b033e1f
      Jeff Dike 提交于
      This is needed for the console output patch, since we have a possibly
      non-NULL-terminated string there.  So, the new interface takes a string and a
      length, and the old interface calls strlen on its string and calls the new
      interface with the length.
      
      There's also a bit of whitespace cleanup.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7b033e1f
    • J
      [PATCH] uml: better diagnostics for broken configs · 44700a44
      Jeff Dike 提交于
      Produce a compile-time error if both MODE_SKAS and MODE_TT are disabled.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      44700a44
    • J
      [PATCH] uml: umid cleanup · 7eebe8a9
      Jeff Dike 提交于
      This patch cleans up the umid code:
      
      - The only_if_set argument to get_umid is gone.
      
      - get_umid returns an empty string rather than NULL if there is no umid.
      
      - umid_is_random is gone since its users went away.
      
      - Some printfs were turned into printks because the code runs late enough
        that printk is working.
      
      - Error paths were cleaned up.
      
      - Some functions now return an error and let the caller print the error
        message rather than printing it themselves.  This eliminates the practice of
        passing a pointer to printf or printk in, depending on where in the boot
        process we are.
      
      - Major tidying of not_dead_yet - mostly error path cleanup, plus a comment
        explaining why it doesn't react to errors the way you might expect.
      
      - Calls to os_* interfaces that were moved under os are changed back to
        their native libc forms.
      
      - snprintf, strlcpy, and their bounds-checking friends are used more often,
        replacing by-hand bounds checking in some places.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7eebe8a9
    • J
      [PATCH] uml: separate libc-dependent umid code · 2264c475
      Jeff Dike 提交于
      I reworked Gennady's umid OS abstraction patch because the code shouldn't
      be moved entirely to os.  As it turns out, I moved most of it anyway.  This
      patch is the minimal one needed to move the code and have it work.
      It turns out that the concept of the umid is OS-independent, but
      almost everything else about the implementation is OS-dependent.
      
      This is code movement without cleanup - a follow-on patch tidies
      everything up without shuffling code around.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2264c475
    • J
      [PATCH] uml: Add throttling to console driver · e4dcee80
      Jeff Dike 提交于
      This patch adds support for throttling and unthrottling input when the tty
      driver can't handle it.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e4dcee80
    • J
      [PATCH] uml: Simplify console opening/closing and irq registration · 165dc591
      Jeff Dike 提交于
      This patch simplifies the opening and closing of host console devices and the
      registration and deregistration of IRQs.  The intent is to make it obvious
      that an IRQ can't exist without an open file descriptor.
      
      chan_enable will now open the channel, and when both opening and IRQ
      registration are desired, this should be used.  Opening only is done for the
      initial console, so that interface still needs to exist.
      
      The free_irqs_later interface is now gone.  It was intended to avoid freeing
      an IRQ while it was being processed.  It did this, but it didn't eliminate the
      possiblity of free_irq being called from an interrupt, which is bad.  In its
      place is a list of irqs to be freed, which is processed by the signal handler
      just before exiting.  close_one_chan now disables irqs.
      
      When a host device disappears, it is just closed, and that disables IRQs.
      
      The device id registered with the IRQ is now the chan structure, not the tty.
      This is because the interrupt arrives on a descriptor associated with the
      channel.  This caused equivalent changes in the arguments to line_timer_cb.
      line_disable is gone since it is not used any more.
      
      The count field in the line structure is gone.  tty->count is used instead.
      
      The complicated logic in sigio_handler with freeing IRQs when necessary and
      making sure its idea of the next irq is correct is now much simpler.  The irq
      list can't be rearranged underneath it, so it is now a simple list walk.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      165dc591
    • J
      [PATCH] uml: move console configuration · 1f80171e
      Jeff Dike 提交于
      This patch changes when console devices are configured in order to prepare the
      ground for the next patch.
      
      parse_chan_pair is now done earlier, when initcalls are run, rather than when
      the device is opened.
      
      When a host device disappears, the channel list is closed, but not freed.
      This is required by the previous change.  line_config now takes the options
      structure as an argument, and line_open doesn't.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      1f80171e
    • J
      [PATCH] uml: Add static initializations and declarations · 9010772c
      Jeff Dike 提交于
      Some structure fields were being dynamically initialized when they could be
      initialized at compile-time instead.  This also makes some declarations static
      (in the C sense).
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9010772c