[SDK:ASM][NDK] Adjust the x86 definition of PCR (for UP and MP).

This commit is contained in:
Hermès Bélusca-Maïto 2021-09-16 23:43:25 +02:00
parent 5f477e0e3b
commit 9632235a37
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 6 additions and 0 deletions

View file

@ -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"),

View file

@ -27,6 +27,7 @@ Author:
#ifdef CONFIG_SMP
#define PCR fs:
#else
/* Address at KIP0PCRADDRESS */
#define PCR ds:[0xFFDFF000]
#endif
#endif