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

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Aug 30 22:35:14 PDT 2010


commit ec2a14f513658cac0bfdd4a0345ee7712b7b43a1
Author: Matthew Dillon <dillon at 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





More information about the Commits mailing list