Cleanup TSS initialization code
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
269214ed34
commit
648ad1636a
@ -187,18 +187,6 @@ XTAPI
|
|||||||
VOID
|
VOID
|
||||||
ArpInitializeTss(IN PKPROCESSOR_BLOCK ProcessorBlock)
|
ArpInitializeTss(IN PKPROCESSOR_BLOCK ProcessorBlock)
|
||||||
{
|
{
|
||||||
PKGDTENTRY TssEntry;
|
|
||||||
|
|
||||||
/* Get TSS entry from GDT */
|
|
||||||
TssEntry = (PKGDTENTRY)(&(ProcessorBlock->GdtBase[KGDT_SYS_TSS / sizeof(KGDTENTRY)]));
|
|
||||||
|
|
||||||
/* Initialize TSS entry */
|
|
||||||
TssEntry->Bits.Dpl = 0;
|
|
||||||
TssEntry->Bits.Present = 1;
|
|
||||||
TssEntry->Bits.Type = I686_TSS;
|
|
||||||
TssEntry->LimitLow = sizeof(KTSS) - 1;
|
|
||||||
TssEntry->Bits.LimitHigh = 0;
|
|
||||||
|
|
||||||
/* Clear I/O map */
|
/* Clear I/O map */
|
||||||
RtlFillMemory(ProcessorBlock->TssBase->IoMaps[0].IoMap, IOPM_FULL_SIZE, 0xFF);
|
RtlFillMemory(ProcessorBlock->TssBase->IoMaps[0].IoMap, IOPM_FULL_SIZE, 0xFF);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user