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

看板DFBSD_commit作者時間15年前 (2010/08/31 14:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CV9gY2Z (DFBSD_commit)