DragonFly BSD
DragonFly commits List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Add a workaround for tty_token during low-level boot


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Aug 2010 22:34:23 -0700 (PDT)

commit ec2a14f513658cac0bfdd4a0345ee7712b7b43a1
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Mon Aug 30 22:31:49 2010 -0700

    kernel - Add a workaround for tty_token during low-level boot
    
    * The low level cninit() code dives into dev/video and does a ton
      of tty_token acquisitions and releases, and even after the bug
      fixes there is still something weird going on in there.
    
      This is a workaround to wrap a master tty_token around the
      cninit() code which prevents an early-boot crash if
      lwkt_gettoken()'s td_mpcount optimization is turned off.
      (the optimization masks the problem).
    
    * Also assert that the mpcount remains correct after the mess
      is done initializing, if it is wrong the SMP/AP boot will
      blow up on us.

Summary of changes:
 sys/kern/tty_cons.c |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ec2a14f513658cac0bfdd4a0345ee7712b7b43a1


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]