syscons(4): Move tty token release and acquirement around Debugger().
authorSascha Wildner <saw@online.de>
Wed, 15 Sep 2010 09:37:27 +0000 (11:37 +0200)
committerSascha Wildner <saw@online.de>
Wed, 15 Sep 2010 09:37:27 +0000 (11:37 +0200)
sys/dev/misc/syscons/syscons.c

index f55ab78..f918559 100644 (file)
@@ -3457,13 +3457,13 @@ next_code:
 
            case DBG:
 #ifndef SC_DISABLE_DDBKEY
-               lwkt_reltoken(&tty_token);
 #ifdef DDB
+               lwkt_reltoken(&tty_token);
                Debugger("manual escape to debugger");
+               lwkt_gettoken(&tty_token);
 #else
                kprintf("No debugger in kernel\n");
 #endif
-               lwkt_gettoken(&tty_token);
 #else /* SC_DISABLE_DDBKEY */
                /* do nothing */
 #endif /* SC_DISABLE_DDBKEY */