mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:02:56 +00:00
[FAST486]
Fix MSVC warnings svn path=/trunk/; revision=67146
This commit is contained in:
parent
02da43250f
commit
7410f3a036
7 changed files with 39 additions and 39 deletions
|
@ -545,7 +545,7 @@ Fast486TaskSwitch(PFAST486_STATE State, FAST486_TASK_SWITCH_TYPE Type, USHORT Se
|
|||
/* Make sure the entry exists in the GDT (not LDT!) */
|
||||
if ((GET_SEGMENT_INDEX(Selector) == 0)
|
||||
|| (Selector & SEGMENT_TABLE_INDICATOR)
|
||||
|| GET_SEGMENT_INDEX(Selector) >= (State->Gdtr.Size + 1))
|
||||
|| GET_SEGMENT_INDEX(Selector) >= (State->Gdtr.Size + 1u))
|
||||
{
|
||||
Fast486ExceptionWithErrorCode(State, FAST486_EXCEPTION_TS, Selector);
|
||||
return FALSE;
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
/* Block size for string operations */
|
||||
#define STRING_BLOCK_SIZE 4096
|
||||
|
||||
#define GET_SEGMENT_RPL(s) ((s) & 3)
|
||||
#define GET_SEGMENT_INDEX(s) ((s) & 0xFFF8)
|
||||
#define GET_SEGMENT_RPL(s) ((s) & 3u)
|
||||
#define GET_SEGMENT_INDEX(s) ((s) & 0xFFF8u)
|
||||
#define SEGMENT_TABLE_INDICATOR (1 << 2)
|
||||
#define EXCEPTION_HAS_ERROR_CODE(x) (((x) == 8) || ((x) >= 10 && (x) <= 14))
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
#endif
|
||||
|
||||
FORCEINLINE
|
||||
INT
|
||||
UINT
|
||||
FASTCALL
|
||||
Fast486GetCurrentPrivLevel(PFAST486_STATE State)
|
||||
{
|
||||
|
@ -447,7 +447,7 @@ Fast486ReadDescriptorEntry(PFAST486_STATE State,
|
|||
if (!(Selector & SEGMENT_TABLE_INDICATOR))
|
||||
{
|
||||
/* Make sure the GDT contains the entry */
|
||||
if (GET_SEGMENT_INDEX(Selector) >= (State->Gdtr.Size + 1))
|
||||
if (GET_SEGMENT_INDEX(Selector) >= (State->Gdtr.Size + 1u))
|
||||
{
|
||||
*EntryValid = FALSE;
|
||||
return TRUE;
|
||||
|
@ -468,7 +468,7 @@ Fast486ReadDescriptorEntry(PFAST486_STATE State,
|
|||
else
|
||||
{
|
||||
/* Make sure the LDT contains the entry */
|
||||
if (GET_SEGMENT_INDEX(Selector) >= (State->Ldtr.Limit + 1))
|
||||
if (GET_SEGMENT_INDEX(Selector) >= (State->Ldtr.Limit + 1u))
|
||||
{
|
||||
*EntryValid = FALSE;
|
||||
return TRUE;
|
||||
|
|
|
@ -1642,7 +1642,7 @@ FAST486_OPCODE_HANDLER(Fast486ExtOpcodeBtc)
|
|||
|
||||
FAST486_OPCODE_HANDLER(Fast486ExtOpcodeBsf)
|
||||
{
|
||||
INT i;
|
||||
UINT i;
|
||||
ULONG Value = 0;
|
||||
BOOLEAN OperandSize, AddressSize;
|
||||
FAST486_MOD_REG_RM ModRegRm;
|
||||
|
|
|
@ -580,8 +580,8 @@ Fast486FpuAdd(PFAST486_STATE State,
|
|||
else TempResult.Sign = FALSE;
|
||||
|
||||
/* Invert the negative mantissa */
|
||||
if (FirstAdjusted.Sign) FirstAdjusted.Mantissa = -FirstAdjusted.Mantissa;
|
||||
if (SecondAdjusted.Sign) SecondAdjusted.Mantissa = -SecondAdjusted.Mantissa;
|
||||
if (FirstAdjusted.Sign) FirstAdjusted.Mantissa = -(LONGLONG)FirstAdjusted.Mantissa;
|
||||
if (SecondAdjusted.Sign) SecondAdjusted.Mantissa = -(LONGLONG)SecondAdjusted.Mantissa;
|
||||
|
||||
/* Calculate the mantissa of the result */
|
||||
TempResult.Mantissa = FirstAdjusted.Mantissa + SecondAdjusted.Mantissa;
|
||||
|
|
|
@ -4154,7 +4154,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodePushFlags)
|
|||
FAST486_OPCODE_HANDLER(Fast486OpcodePopFlags)
|
||||
{
|
||||
BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size;
|
||||
INT Cpl = Fast486GetCurrentPrivLevel(State);
|
||||
UINT Cpl = Fast486GetCurrentPrivLevel(State);
|
||||
FAST486_FLAGS_REG NewFlags;
|
||||
|
||||
NO_LOCK_PREFIX();
|
||||
|
@ -4487,8 +4487,8 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeRetFar)
|
|||
|
||||
if ((State->ControlRegisters[FAST486_REG_CR0] & FAST486_CR0_PE) && !State->Flags.Vm)
|
||||
{
|
||||
INT i;
|
||||
INT OldCpl = Fast486GetCurrentPrivLevel(State);
|
||||
UINT i;
|
||||
UINT OldCpl = Fast486GetCurrentPrivLevel(State);
|
||||
ULONG StackPtr;
|
||||
ULONG StackSel;
|
||||
|
||||
|
@ -4658,7 +4658,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeIret)
|
|||
/* Check for protected mode */
|
||||
if (State->ControlRegisters[FAST486_REG_CR0] & FAST486_CR0_PE)
|
||||
{
|
||||
INT OldCpl = Fast486GetCurrentPrivLevel(State);
|
||||
UINT OldCpl = Fast486GetCurrentPrivLevel(State);
|
||||
|
||||
if (State->Flags.Vm)
|
||||
{
|
||||
|
|
|
@ -1142,7 +1142,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeGroupF7)
|
|||
case 3:
|
||||
{
|
||||
/* Calculate the result */
|
||||
ULONG Result = -Value;
|
||||
ULONG Result = -(LONG)Value;
|
||||
if (!OperandSize) Result &= 0xFFFF;
|
||||
|
||||
/* Update the flags */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue