mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:02:02 +00:00
[SDK:NDK/XDK] Remove x86 KeGetPcr() definition from the DDK (#6526)
The official MS DDK/WDK does not expose KeGetPcr() for x86, so do not expose it there as well. Use instead the private NDK definition. If it were exposed in the DDK/WDK, it would have to be a multiprocessor-compatible definition. Note that the broken definition was working only in single-processor mode, using the PCR static memory pointer value. The official MS DDK/WDK exposes KeGetPcr() as an alias to such a PCR value only for IA64, MIPS and PPC, which is of course not great.
This commit is contained in:
parent
e6c0081c28
commit
bf9cac8a67
2 changed files with 15 additions and 3 deletions
|
@ -75,8 +75,10 @@ Author:
|
|||
#define K0IPCR ((ULONG_PTR)(KIP0PCRADDRESS))
|
||||
#define PCR ((KPCR *)K0IPCR)
|
||||
#if defined(CONFIG_SMP) || defined(NT_BUILD)
|
||||
#undef KeGetPcr
|
||||
//#undef KeGetPcr
|
||||
#define KeGetPcr() ((KPCR *)__readfsdword(FIELD_OFFSET(KPCR, SelfPcr)))
|
||||
#else
|
||||
#define KeGetPcr() PCR
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue