From 70919642d8c583ae9d89ef30547c05e5dd6908fb Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 17 Oct 2004 13:26:48 +0000 Subject: [PATCH] - Simplified the definition of KeGetCurrentKPCR for the UP target. svn path=/trunk/; revision=11315 --- reactos/ntoskrnl/include/internal/i386/ps.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/ntoskrnl/include/internal/i386/ps.h b/reactos/ntoskrnl/include/internal/i386/ps.h index 4c8b4ba864f..c14767157a0 100644 --- a/reactos/ntoskrnl/include/internal/i386/ps.h +++ b/reactos/ntoskrnl/include/internal/i386/ps.h @@ -246,6 +246,8 @@ typedef struct _KPCR { #ifndef __USE_W32API +#ifdef MP + static inline PKPCR KeGetCurrentKPCR(VOID) { ULONG value; @@ -264,6 +266,12 @@ static inline PKPCR KeGetCurrentKPCR(VOID) return((PKPCR)value); } +#else + +#define KeGetCurrentKPCR(X) ((PKPCR)KPCR_BASE) + +#endif + #endif /* __USE_W32API */ VOID