- Timestamp:
- Feb 19, 2001, 6:52:14 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/include/OS2Krnl.h
r5098 r5182 1 /* $Id: OS2Krnl.h,v 1.1 1 2001-02-11 15:11:34 bird Exp $1 /* $Id: OS2Krnl.h,v 1.12 2001-02-19 05:52:14 bird Exp $ 2 2 * 3 3 * OS/2 kernel structures, typedefs and macros. … … 26 26 #endif 27 27 28 #ifndef PAGESHIFT 28 /* undefine everything defined below to quite compiler */ 29 #undef PAGESIZE 30 #undef PAGESUB1 31 #undef PAGEOFFSET 32 #undef PAGESTART 33 #undef PAGEALIGNUP 34 #undef PAGEALIGNDOWN 35 #undef PAGENEXT 36 #undef PAGESTART 37 #undef PAGESHIFT 38 29 39 #define PAGESHIFT 12 /* bytes to pages or pages to bytes shift value. */ 30 #endif 31 #ifndef PAGESIZE 32 #define PAGESIZE 0x1000 /* pagesize on i386 */ 33 #endif 34 #ifndef PAGEOFFSET 35 #define PAGEOFFSET(addr) ((addr) & (PAGESIZE-1)) /* Gets the offset into the page addr points into. */ 36 #endif 37 #ifndef PAGESTART 38 #define PAGESTART(addr) ((addr) & ~(PAGESIZE-1)) /* Gets the address of the page addr points into. */ 39 #endif 40 #define PAGESIZE 0x1000UL/* pagesize on i386 */ 41 #define PAGESUB1 0x0FFFUL 42 #define PAGEALIGNMASK 0xFFFFF000UL 43 #define PAGEOFFSET(addr) ((addr) & PAGESUB1) /* Gets the offset into the page addr points into. */ 44 #define PAGEALIGNUP(addr) (((addr) + PAGESUB1) & PAGEALIGNMASK) /* Aligns upwards */ 45 #define PAGEALIGNDOWN(addr) ((addr) & PAGEALIGNMASK) /* Aligns downwards */ 46 #define PAGESTART(addr) PAGEALIGNDOWN(addr) 47 #define PAGENEXT(addr) PAGEALIGNUP(addr) 40 48 41 49
Note:
See TracChangeset
for help on using the changeset viewer.