projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[FAST486]
[reactos.git]
/
reactos
/
lib
/
fast486
/
common.c
diff --git
a/reactos/lib/fast486/common.c
b/reactos/lib/fast486/common.c
index
09a9c72
..
46556e2
100644
(file)
--- a/
reactos/lib/fast486/common.c
+++ b/
reactos/lib/fast486/common.c
@@
-160,9
+160,8
@@
Fast486WriteMemory(PFAST486_STATE State,
return Fast486WriteLinearMemory(State, LinearAddress, Buffer, Size);
}
return Fast486WriteLinearMemory(State, LinearAddress, Buffer, Size);
}
-static
-inline
-BOOLEAN
+static inline BOOLEAN
+FASTCALL
Fast486GetIntVector(PFAST486_STATE State,
UCHAR Number,
PFAST486_IDT_ENTRY IdtEntry)
Fast486GetIntVector(PFAST486_STATE State,
UCHAR Number,
PFAST486_IDT_ENTRY IdtEntry)
@@
-208,14
+207,15
@@
Fast486GetIntVector(PFAST486_STATE State,
return TRUE;
}
return TRUE;
}
-static
-inline
-BOOLEAN
+static inline BOOLEAN
+FASTCALL
Fast486InterruptInternal(PFAST486_STATE State,
Fast486InterruptInternal(PFAST486_STATE State,
- USHORT SegmentSelector,
- ULONG Offset,
- ULONG GateType)
+ PFAST486_IDT_ENTRY IdtEntry)
{
{
+ USHORT SegmentSelector = IdtEntry->Selector;
+ ULONG Offset = MAKELONG(IdtEntry->Offset, IdtEntry->OffsetHigh);
+ ULONG GateType = IdtEntry->Type;
+
BOOLEAN GateSize = (GateType == FAST486_IDT_INT_GATE_32)
|| (GateType == FAST486_IDT_TRAP_GATE_32);
BOOLEAN Success = FALSE;
BOOLEAN GateSize = (GateType == FAST486_IDT_INT_GATE_32)
|| (GateType == FAST486_IDT_TRAP_GATE_32);
BOOLEAN Success = FALSE;
@@
-355,6
+355,7
@@
Cleanup:
}
BOOLEAN
}
BOOLEAN
+FASTCALL
Fast486PerformInterrupt(PFAST486_STATE State,
UCHAR Number)
{
Fast486PerformInterrupt(PFAST486_STATE State,
UCHAR Number)
{
@@
-368,10
+369,7
@@
Fast486PerformInterrupt(PFAST486_STATE State,
}
/* Perform the interrupt */
}
/* Perform the interrupt */
- if (!Fast486InterruptInternal(State,
- IdtEntry.Selector,
- MAKELONG(IdtEntry.Offset, IdtEntry.OffsetHigh),
- IdtEntry.Type))
+ if (!Fast486InterruptInternal(State, &IdtEntry))
{
/* Exception occurred */
return FALSE;
{
/* Exception occurred */
return FALSE;