git: vkernel - Properly initialize pool tokens.
Antonio Huete Jimenez
tuxillo at crater.dragonflybsd.org
Mon Oct 8 08:33:38 PDT 2012
commit 0f85165cc636da905f7031428e4e8fc59f13c7ea
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date: Mon Oct 8 16:28:20 2012 +0200
vkernel - Properly initialize pool tokens.
* There was no call to init_locks() in vkernel's initialization
code, so provide one.
* As pool tokens weren't initialized, the attempt to copy its
t_desc in lwkt_getalltokens() resulted in a panic. This should
be fixed now.
* Add a KASSERT() so that uninitialized tokens will panic the system.
Suggested by: swildner
Summary of changes:
sys/kern/lwkt_token.c | 1 +
sys/platform/vkernel/platform/init.c | 30 ++++++++++++++++++++++--------
sys/platform/vkernel64/platform/init.c | 32 ++++++++++++++++++++++++--------
3 files changed, 47 insertions(+), 16 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0f85165cc636da905f7031428e4e8fc59f13c7ea
--
DragonFly BSD source repository
More information about the Commits
mailing list