From 3a86ab14244c7de6c4093721288c6aa6f71d7fbc Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Sun, 10 Mar 2024 22:51:34 +0100 Subject: [PATCH] Remove duplicated code --- xtoskrnl/ke/panic.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xtoskrnl/ke/panic.c b/xtoskrnl/ke/panic.c index 192a747e..f5c8fc76 100644 --- a/xtoskrnl/ke/panic.c +++ b/xtoskrnl/ke/panic.c @@ -78,9 +78,5 @@ KePanicEx(IN ULONG Code, IN ULONG_PTR Parameter4) { KeDbgPrint(L"Fatal System Error: 0x%08lx\nKernel Panic!\n\n", Code); - for(;;) - { - ArClearInterruptFlag(); - ArHalt(); - } + KeHaltSystem(); }