From 0f59361d1102bffb134d0efcfebdb7114fec446f Mon Sep 17 00:00:00 2001 From: Gregor Anich Date: Fri, 27 Aug 2004 00:14:01 +0000 Subject: [PATCH] Do not call HalReleaseDisplayOwnership when KDB is entered and screen debugging is not enabled. After an exception the screen will not turn blue but will freeze and be un-frozen when KDB is left (cont) I hope this can not damage old monitors if the card starts producing garbage signals when the driver is suspended - in VMWare it works well. svn path=/trunk/; revision=10702 --- reactos/ntoskrnl/dbg/kdb.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/dbg/kdb.c b/reactos/ntoskrnl/dbg/kdb.c index 092182d9f7a..79d081a686f 100644 --- a/reactos/ntoskrnl/dbg/kdb.c +++ b/reactos/ntoskrnl/dbg/kdb.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: kdb.c,v 1.29 2004/08/26 16:04:49 blight Exp $ +/* $Id: kdb.c,v 1.30 2004/08/27 00:14:01 blight Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/dbg/kdb.c @@ -1526,7 +1526,10 @@ KdbInternalEnter(PKTRAP_FRAME Tf) { __asm__ __volatile__ ("cli\n\t"); KbdDisableMouse(); - HalReleaseDisplayOwnership(); + if (KdDebugState & KD_DEBUG_SCREEN) + { + HalReleaseDisplayOwnership(); + } (VOID)KdbMainLoop(Tf); KbdEnableMouse(); __asm__ __volatile__("sti\n\t");