https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9632235a377298a420654c...
commit 9632235a377298a420654c6def3e36b8b9b78b5d Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Thu Sep 16 23:43:25 2021 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Sun Aug 6 17:29:06 2023 +0200
[SDK:ASM][NDK] Adjust the x86 definition of PCR (for UP and MP). --- sdk/include/asm/ks386.template.h | 5 +++++ sdk/include/ndk/i386/asm.h | 1 + 2 files changed, 6 insertions(+)
diff --git a/sdk/include/asm/ks386.template.h b/sdk/include/asm/ks386.template.h index cf581712b17..25cae3c4b15 100644 --- a/sdk/include/asm/ks386.template.h +++ b/sdk/include/asm/ks386.template.h @@ -556,7 +556,12 @@ SIZE(XsaHeaderLength, XSAVE_AREA_HEADER),
HEADER("Data access macros"), RAW("#define USERDATA ds:[HEX(0FFDF0000)]"), +RAW("#ifdef CONFIG_SMP"), RAW("#define PCR fs:"), +RAW("#else"), +/* Address at KIP0PCRADDRESS */ +RAW("#define PCR ds:[HEX(0FFDFF000)]"), +RAW("#endif"),
#if (NTDDI_VERSION >= NTDDI_WIN8) HEADER("KNODE offsets"), diff --git a/sdk/include/ndk/i386/asm.h b/sdk/include/ndk/i386/asm.h index 57fad2bdcb3..07b756b3d30 100644 --- a/sdk/include/ndk/i386/asm.h +++ b/sdk/include/ndk/i386/asm.h @@ -27,6 +27,7 @@ Author: #ifdef CONFIG_SMP #define PCR fs: #else +/* Address at KIP0PCRADDRESS */ #define PCR ds:[0xFFDFF000] #endif #endif