mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 14:51:00 +00:00
[SOFT386]
- Code formatting (align on 4-space) - Fix union / struct problem in _SOFT386_PAGE_TABLE. svn path=/branches/ntvdm/; revision=60189
This commit is contained in:
parent
7588e8cb68
commit
c27ff5b52f
3 changed files with 108 additions and 105 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/soft386)
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/soft386)
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
|
|
|
@ -18,9 +18,11 @@
|
||||||
#define SIGN_FLAG_BYTE 0x80
|
#define SIGN_FLAG_BYTE 0x80
|
||||||
#define SIGN_FLAG_WORD 0x8000
|
#define SIGN_FLAG_WORD 0x8000
|
||||||
#define SIGN_FLAG_LONG 0x80000000
|
#define SIGN_FLAG_LONG 0x80000000
|
||||||
|
|
||||||
#define GET_SEGMENT_RPL(s) ((s) & 3)
|
#define GET_SEGMENT_RPL(s) ((s) & 3)
|
||||||
#define GET_SEGMENT_INDEX(s) ((s) & 0xFFF8)
|
#define GET_SEGMENT_INDEX(s) ((s) & 0xFFF8)
|
||||||
#define EXCEPTION_HAS_ERROR_CODE(x) (((x) == 8) || ((x) >= 10 && (x) <= 14))
|
#define EXCEPTION_HAS_ERROR_CODE(x) (((x) == 8) || ((x) >= 10 && (x) <= 14))
|
||||||
|
|
||||||
#define PAGE_ALIGN(x) ((x) & 0xFFFFF000)
|
#define PAGE_ALIGN(x) ((x) & 0xFFFFF000)
|
||||||
#define PAGE_OFFSET(x) ((x) & 0x00000FFF)
|
#define PAGE_OFFSET(x) ((x) & 0x00000FFF)
|
||||||
|
|
||||||
|
@ -59,9 +61,9 @@ typedef union _SOFT386_PAGE_DIR
|
||||||
ULONG Value;
|
ULONG Value;
|
||||||
} SOFT386_PAGE_DIR, *PSOFT386_PAGE_DIR;
|
} SOFT386_PAGE_DIR, *PSOFT386_PAGE_DIR;
|
||||||
|
|
||||||
typedef struct _SOFT386_PAGE_TABLE
|
typedef union _SOFT386_PAGE_TABLE
|
||||||
{
|
{
|
||||||
union
|
struct
|
||||||
{
|
{
|
||||||
ULONG Present : 1;
|
ULONG Present : 1;
|
||||||
ULONG Writeable : 1;
|
ULONG Writeable : 1;
|
||||||
|
|
Loading…
Reference in a new issue