mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:56:00 +00:00
[INCLUDE]
- Properly declare and use DECLSPEC_CACHEALIGN. Patch by Samuel Serapión. CORE-7139 #resolve svn path=/trunk/; revision=59431
This commit is contained in:
parent
945604b9dd
commit
52436562f4
3 changed files with 15 additions and 3 deletions
|
@ -1878,7 +1878,7 @@ typedef enum _EX_POOL_PRIORITY {
|
|||
#if !defined(_WIN64) && (defined(_NTDDK_) || defined(_NTIFS_) || defined(_NDIS_))
|
||||
#define LOOKASIDE_ALIGN
|
||||
#else
|
||||
#define LOOKASIDE_ALIGN /* FIXME: DECLSPEC_CACHEALIGN */
|
||||
#define LOOKASIDE_ALIGN DECLSPEC_CACHEALIGN
|
||||
#endif
|
||||
|
||||
typedef struct _LOOKASIDE_LIST_EX *PLOOKASIDE_LIST_EX;
|
||||
|
@ -8333,7 +8333,7 @@ KeRestoreFloatingPointState(PVOID FloatingState)
|
|||
#define HIGH_LEVEL 15
|
||||
|
||||
#define KI_USER_SHARED_DATA ((ULONG_PTR)(KADDRESS_BASE + 0xFFFE0000))
|
||||
extern volatile LARGE_INTEGER KeTickCount;
|
||||
extern DECLSPEC_CACHEALIGN volatile LARGE_INTEGER KeTickCount;
|
||||
|
||||
#define PAUSE_PROCESSOR __yield();
|
||||
|
||||
|
|
|
@ -299,6 +299,18 @@
|
|||
#endif
|
||||
#endif /* DECLSPEC_ALIGN */
|
||||
|
||||
#ifndef SYSTEM_CACHE_ALIGNMENT_SIZE
|
||||
#if defined(_AMD64_) || defined(_X86_)
|
||||
#define SYSTEM_CACHE_ALIGNMENT_SIZE 64
|
||||
#else
|
||||
#define SYSTEM_CACHE_ALIGNMENT_SIZE 128
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef DECLSPEC_CACHEALIGN
|
||||
#define DECLSPEC_CACHEALIGN DECLSPEC_ALIGN(SYSTEM_CACHE_ALIGNMENT_SIZE)
|
||||
#endif
|
||||
|
||||
#ifndef DECLSPEC_SELECTANY
|
||||
#if (_MSC_VER >= 1100) || defined(__GNUC__)
|
||||
#define DECLSPEC_SELECTANY __declspec(selectany)
|
||||
|
|
|
@ -51,7 +51,7 @@ typedef enum _EX_POOL_PRIORITY {
|
|||
#if !defined(_WIN64) && (defined(_NTDDK_) || defined(_NTIFS_) || defined(_NDIS_))
|
||||
#define LOOKASIDE_ALIGN
|
||||
#else
|
||||
#define LOOKASIDE_ALIGN /* FIXME: DECLSPEC_CACHEALIGN */
|
||||
#define LOOKASIDE_ALIGN DECLSPEC_CACHEALIGN
|
||||
#endif
|
||||
|
||||
typedef struct _LOOKASIDE_LIST_EX *PLOOKASIDE_LIST_EX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue