[NDK][XDK] Improve SharedUserData related definitions

- Move definition of USER_SHARED_DATA from pstypes.h to ketypes.h
- Add missing definition of KI_USER_SHARED_DATA for ARM64
- Remove definition of KI_USER_SHARED_DATA_PHYSICAL
This commit is contained in:
Timo Kreuzer
2025-10-28 08:12:43 +02:00
parent 77b88c48a4
commit 7debc3ef11
3 changed files with 6 additions and 10 deletions

View File

@@ -125,11 +125,6 @@ Author:
//
#define THREAD_ALERT_INCREMENT 2
//
// Physical memory offset of KUSER_SHARED_DATA
//
#define KI_USER_SHARED_DATA_PHYSICAL 0x41000
//
// Quantum values and decrements
//
@@ -164,6 +159,11 @@ typedef struct _FIBER /* Field offsets: */
#endif
} FIBER, *PFIBER;
//
// KUSER_SHARED_DATA location in User Mode
//
#define USER_SHARED_DATA 0x7FFE0000
#ifndef NTOS_MODE_USER
//
// Number of dispatch codes supported by KINTERRUPT

View File

@@ -45,11 +45,6 @@ extern POBJECT_TYPE NTSYSAPI PsJobType;
#endif // !NTOS_MODE_USER
//
// KUSER_SHARED_DATA location in User Mode
//
#define USER_SHARED_DATA (0x7FFE0000)
//
// Global Flags
//

View File

@@ -13,6 +13,7 @@ $if (_WDMDDK_)
#define PROFILE_LEVEL 15
#define HIGH_LEVEL 15
#define KI_USER_SHARED_DATA 0xFFFFF78000000000ULL
#define SharedUserData ((KUSER_SHARED_DATA * const)KI_USER_SHARED_DATA)
#define PAGE_SIZE 0x1000