[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:
Hermès Bélusca-Maïto 2013-09-17 21:47:38 +00:00
parent 7588e8cb68
commit c27ff5b52f
3 changed files with 108 additions and 105 deletions

View file

@ -1,3 +1,4 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/soft386)
list(APPEND SOURCE

View file

@ -18,9 +18,11 @@
#define SIGN_FLAG_BYTE 0x80
#define SIGN_FLAG_WORD 0x8000
#define SIGN_FLAG_LONG 0x80000000
#define GET_SEGMENT_RPL(s) ((s) & 3)
#define GET_SEGMENT_INDEX(s) ((s) & 0xFFF8)
#define EXCEPTION_HAS_ERROR_CODE(x) (((x) == 8) || ((x) >= 10 && (x) <= 14))
#define PAGE_ALIGN(x) ((x) & 0xFFFFF000)
#define PAGE_OFFSET(x) ((x) & 0x00000FFF)
@ -59,9 +61,9 @@ typedef union _SOFT386_PAGE_DIR
ULONG Value;
} SOFT386_PAGE_DIR, *PSOFT386_PAGE_DIR;
typedef struct _SOFT386_PAGE_TABLE
typedef union _SOFT386_PAGE_TABLE
{
union
struct
{
ULONG Present : 1;
ULONG Writeable : 1;