Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2006 04:54:51 +0000 (UTC)
From:      John Birrell <jb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/amd64/amd64 genassym.c src/sys/arm/arm genassym.c src/sys/i386/i386 genassym.c src/sys/ia64/ia64 genassym.c src/sys/kern subr_prf.c tty_cons.c src/sys/powerpc/powerpc genassym.c src/sys/sparc64/sparc64 ...
Message-ID:  <200611010454.kA14spYn014613@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jb          2006-11-01 04:54:51 UTC

  FreeBSD src repository

  Modified files:
    sys/amd64/amd64      genassym.c 
    sys/arm/arm          genassym.c 
    sys/i386/i386        genassym.c 
    sys/ia64/ia64        genassym.c 
    sys/kern             subr_prf.c tty_cons.c 
    sys/powerpc/powerpc  genassym.c 
    sys/sparc64/sparc64  genassym.c 
    sys/sys              cons.h pcpu.h 
  Log:
  Add a cnputs() function to write a string to the console with
  a lock to prevent interspersed strings written from different CPUs
  at the same time.
  
  To avoid putting a buffer on the stack or having to malloc one,
  space is incorporated in the per-cpu structure. The buffer
  size if 128 bytes; chosen because it's the next power of 2 size
  up from 80 characters.
  
  String writes to the console are buffered up the end of the line
  or until the buffer fills. Then the buffer is flushed to all
  console devices.
  
  Existing low level console output via cnputc() is unaffected by
  this change. ithread calls to log() are also unaffected to avoid
  blocking those threads.
  
  A minor change to the behaviour in a panic situation is that
  console output will still be buffered, but won't be written to
  a tty as before. This should prevent interspersed panic output
  as a number of CPUs panic before we end up single threaded
  running ddb.
  
  Reviewed by:    scottl, jhb
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.158     +1 -0      src/sys/amd64/amd64/genassym.c
  1.7       +1 -0      src/sys/arm/arm/genassym.c
  1.154     +1 -0      src/sys/i386/i386/genassym.c
  1.43      +1 -0      src/sys/ia64/ia64/genassym.c
  1.126     +72 -17    src/sys/kern/subr_prf.c
  1.136     +25 -0     src/sys/kern/tty_cons.c
  1.57      +1 -0      src/sys/powerpc/powerpc/genassym.c
  1.62      +1 -0      src/sys/sparc64/sparc64/genassym.c
  1.40      +1 -0      src/sys/sys/cons.h
  1.18      +5 -0      src/sys/sys/pcpu.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611010454.kA14spYn014613>