mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:33:12 +00:00
[FAST486]
Fix prefix handling. Create a macro NO_LOCK_PREFIX to shorten the code. svn path=/branches/ntvdm/; revision=60714
This commit is contained in:
parent
75a0ca07a1
commit
97c51f53c4
2 changed files with 44 additions and 399 deletions
|
@ -41,6 +41,12 @@
|
|||
#define GET_SEGMENT_INDEX(s) ((s) & 0xFFF8)
|
||||
#define EXCEPTION_HAS_ERROR_CODE(x) (((x) == 8) || ((x) >= 10 && (x) <= 14))
|
||||
|
||||
#define NO_LOCK_PREFIX() if (State->PrefixFlags & FAST486_PREFIX_LOCK)\
|
||||
{\
|
||||
Fast486Exception(State, FAST486_EXCEPTION_UD);\
|
||||
return FALSE;\
|
||||
}
|
||||
|
||||
#define PAGE_ALIGN(x) ((x) & 0xFFFFF000)
|
||||
#define PAGE_OFFSET(x) ((x) & 0x00000FFF)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue