mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:13:06 +00:00
[FAST486]
- Call Fast486GetCurrentPrivLevel only when needed. - Fix a type. svn path=/branches/ntvdm/; revision=61211
This commit is contained in:
parent
aad49cc77c
commit
a2bd742ecd
4 changed files with 20 additions and 23 deletions
|
@ -40,19 +40,19 @@
|
|||
#define SEGMENT_TABLE_INDICATOR (1 << 2)
|
||||
#define EXCEPTION_HAS_ERROR_CODE(x) (((x) == 8) || ((x) >= 10 && (x) <= 14))
|
||||
|
||||
#define NO_LOCK_PREFIX() if (State->PrefixFlags & FAST486_PREFIX_LOCK)\
|
||||
#define NO_LOCK_PREFIX()\
|
||||
if (State->PrefixFlags & FAST486_PREFIX_LOCK)\
|
||||
{\
|
||||
Fast486Exception(State, FAST486_EXCEPTION_UD);\
|
||||
return FALSE;\
|
||||
}
|
||||
#define TOGGLE_OPSIZE(x) if (State->PrefixFlags & FAST486_PREFIX_OPSIZE)\
|
||||
{\
|
||||
x = !x;\
|
||||
}
|
||||
#define TOGGLE_ADSIZE(x) if (State->PrefixFlags & FAST486_PREFIX_ADSIZE)\
|
||||
{\
|
||||
x = !x;\
|
||||
}
|
||||
|
||||
#define TOGGLE_OPSIZE(x)\
|
||||
if (State->PrefixFlags & FAST486_PREFIX_OPSIZE) x = !x;
|
||||
|
||||
#define TOGGLE_ADSIZE(x)\
|
||||
if (State->PrefixFlags & FAST486_PREFIX_ADSIZE) x = !x;
|
||||
|
||||
#define SWAP(x, y) { (x) ^= (y); (y) ^= (x); (x) ^= (y); }
|
||||
|
||||
#define PAGE_ALIGN(x) ((x) & 0xFFFFF000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue