- Update selector names to official names and define/use the MODE and RPL masks for...
[reactos.git] / reactos / ntoskrnl / ps / debug.c
index 1aa7782..742326a 100644 (file)
@@ -56,7 +56,7 @@ PspGetOrSetContextKernelRoutine(PKAPC Apc,
     Event = &GetSetContext->Event;
     Mode = GetSetContext->Mode;
 
-    if (TrapFrame->Cs == KERNEL_CS && Mode != KernelMode)
+    if (TrapFrame->Cs == KGDT_R0_CODE && Mode != KernelMode)
     {
         GetSetContext->Status = STATUS_ACCESS_DENIED;
     }