From 1dd7c3a8e0897313f96e663af95d558b8b5312fb Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 17 Mar 2010 16:17:16 +0000 Subject: [PATCH] [NTOS] I forgot to set the exit function for systems without sysenter/sysexit support. Should fix sysreg. svn path=/trunk/; revision=46250 --- reactos/ntoskrnl/ke/i386/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/ntoskrnl/ke/i386/cpu.c b/reactos/ntoskrnl/ke/i386/cpu.c index 49055b7ca21..9434259f104 100644 --- a/reactos/ntoskrnl/ke/i386/cpu.c +++ b/reactos/ntoskrnl/ke/i386/cpu.c @@ -1018,6 +1018,11 @@ KiRestoreFastSyscallReturnState(VOID) KiFastCallExitHandler = KiSystemCallTrapReturn; } } + else + { + /* Use the IRET handler */ + KiFastCallExitHandler = KiSystemCallTrapReturn; + } } ULONG_PTR -- 2.17.1