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

git: vkernel - Properly initialize pool tokens.


From: Antonio Huete Jimenez <tuxillo@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 8 Oct 2012 08:33:38 -0700 (PDT)

commit 0f85165cc636da905f7031428e4e8fc59f13c7ea
Author: Antonio Huete Jimenez <tuxillo@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



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