mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- Properly implement inline versions of KeGetCurrentThread and KeGetPreviousMode/ExGetPreviousMode, as well as KeGetPcr. This should significantly increase performance. (KeGetPreviousMode is reduced to 2 lines of code instead of 15 lines with 2 expensive jumps).
svn path=/trunk/; revision=24639
This commit is contained in:
@@ -8678,12 +8678,6 @@ NTAPI
|
||||
KeGetCurrentThread(
|
||||
VOID);
|
||||
|
||||
NTKERNELAPI
|
||||
KPROCESSOR_MODE
|
||||
NTAPI
|
||||
KeGetPreviousMode(
|
||||
VOID);
|
||||
|
||||
NTKERNELAPI
|
||||
ULONG
|
||||
NTAPI
|
||||
|
||||
@@ -95,7 +95,7 @@ Author:
|
||||
//
|
||||
#define K0IPCR ((ULONG_PTR)(KIP0PCRADDRESS))
|
||||
#define PCR ((volatile KPCR * const)K0IPCR)
|
||||
#ifdef _WE_USE_THE_SAME_PCR_ADDRESS
|
||||
#if !defined(CONFIG_SMP) && !defined(NT_BUILD)
|
||||
#define KeGetPcr() PCR
|
||||
#else
|
||||
#define KeGetPcr() ((volatile KPCR * const)__readfsdword(0x1C))
|
||||
|
||||
Reference in New Issue
Block a user