Always use RtlSetMemory() to fill a buffer with a specified pattern
This commit is contained in:
parent
477e56e294
commit
e409675f98
@ -365,7 +365,7 @@ VOID
|
|||||||
ArpInitializeTss(IN PKPROCESSOR_BLOCK ProcessorBlock)
|
ArpInitializeTss(IN PKPROCESSOR_BLOCK ProcessorBlock)
|
||||||
{
|
{
|
||||||
/* Clear I/O map */
|
/* Clear I/O map */
|
||||||
RtlFillMemory(ProcessorBlock->TssBase->IoMaps[0].IoMap, IOPM_FULL_SIZE, 0xFF);
|
RtlSetMemory(ProcessorBlock->TssBase->IoMaps[0].IoMap, 0xFF, IOPM_FULL_SIZE);
|
||||||
|
|
||||||
/* Fill Interrupt Direction Maps with zeroes */
|
/* Fill Interrupt Direction Maps with zeroes */
|
||||||
RtlZeroMemory(ProcessorBlock->TssBase->IoMaps[0].DirectionMap, IOPM_DIRECTION_MAP_SIZE);
|
RtlZeroMemory(ProcessorBlock->TssBase->IoMaps[0].DirectionMap, IOPM_DIRECTION_MAP_SIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user