Changeset 1467 for trunk/src/win32k/include/dev32.h
- Timestamp:
- Oct 27, 1999, 4:03:01 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/include/dev32.h
r1269 r1467 1 /* $Id: dev32.h,v 1. 2 1999-10-14 01:16:49bird Exp $1 /* $Id: dev32.h,v 1.3 1999-10-27 02:02:56 bird Exp $ 2 2 * 3 3 * dev32 - header file for 32-bit part of the driver. … … 48 48 * Function prototypes. 49 49 */ 50 #if ndef __cplusplus50 #if !defined(__cplusplus) && defined(RING0) 51 51 USHORT _loadds _Far32 _Pascal R0Init32(RP32INIT *pRpInit); 52 52 USHORT _loadds _Far32 _Pascal GetOTEs32(PKRNLOBJTABLE pOTEBuf); 53 53 USHORT _loadds _Far32 _Pascal VerifyProcTab32(void); 54 54 #endif 55 #ifdef _OS2Krnl_h_ 56 PMTE _System GetOS2KrnlMTE(void); /* (devfirst.asm) */ 57 #endif 58 55 59 56 60 /* 57 61 * Global variables 58 62 */ 59 extern ULONGTKSSBase32;63 extern PULONG pulTKSSBase32; 60 64 61 65 /* 62 * Macros 66 * SSToDS( stack pointer ) 67 * 68 * In RING-0 this translates pointers to stack memory in the 69 * Stack Segment (SS) to pointers to stack memory in the 70 * Data Segment (DS). SS is 16-bit compatible, DS is 32-bit flat. 71 * It is vitally important to use this macro whenever creating 72 * a pointer to stack memory which don't implies that is a pointer 73 * relative to SS. For example when passing the pointer to an stack 74 * variable into an function call; like the addToModule calls. 75 * 76 * @returns 32-bit FLAT stack pointer. 63 77 */ 64 #define SSToDS(a) ((PVOID)((ULONG)(a) + TKSSBase32)) 78 #ifdef RING0 79 #define SSToDS(a) ((PVOID)((ULONG)(a) + *pulTKSSBase32)) 80 #else 81 #define SSToDS(a) ((PVOID)(a)) 82 #endif 65 83 66 84 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.