git: kernel: Fix stop_cpus()/restart_cpus() usages when panicing.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sun Dec 4 12:06:00 PST 2016


commit a798ebf2db231775b705e7753a58f3fd53227ce1
Author: Imre Vadász <imre at vdsz.com>
Date:   Sat Dec 3 21:15:13 2016 +0100

    kernel: Fix stop_cpus()/restart_cpus() usages when panicing.
    
    * If we are panicing (i.e. panicstr != NULL), Debugger() should make sure
      that cpus are stopped when it returns. So call stop_cpus() explicitly
      if Debugger() does an early return (i.e. in the cons_unavail case), and
      don't call restart_cpus() at the end if we are panicing.
    
    * This should make sure that Debugger()'s behaviour matches the
      expectations of panic() in sys/kern/kern_shutdown.c.

Summary of changes:
 sys/platform/pc64/x86_64/db_interface.c | 35 +++++++++++++++++++++------------
 1 file changed, 22 insertions(+), 13 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list