return;
}
- memset(PartialResourceList, 0, sizeof(CM_PARTIAL_RESOURCE_LIST) + TableSize);
+ RtlZeroMemory(PartialResourceList, sizeof(CM_PARTIAL_RESOURCE_LIST) + TableSize);
PartialResourceList->Version = 0;
PartialResourceList->Revision = 0;
PartialResourceList->Count = 1;
}
/* Initialize resource descriptor */
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 2;
}
/* Initialize resource descriptor */
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
/* Create new bus key */
FldrCreateComponentKey(SystemKey,
}
/* Initialize resource descriptor */
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 1;
}
/* Initialize resource descriptor */
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
}
/* Create the bus key */
IN EVENT_TYPE Type,
IN BOOLEAN State)
{
- memset(Event, 0, sizeof(*Event));
+ RtlZeroMemory(Event, sizeof(*Event));
}
VOID
return NULL;
}
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 1;
ERR("Failed to allocate resource descriptor\n");
return;
}
- memset(PartialResourceList, 0, Size);
+
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 0;
}
/* Initialize resource descriptor */
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 1;
}
/* Initialize resource descriptor */
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 3;
ERR("Failed to allocate resource descriptor\n");
return;
}
- memset(PartialResourceList, 0, Size);
+
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 0;
}
/* Initialize resource descriptor */
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 0;
VOID
MachInit(const char *CmdLine)
{
- memset(&MachVtbl, 0, sizeof(MACHVTBL));
-
/* Setup vtbl */
+ RtlZeroMemory(&MachVtbl, sizeof(MachVtbl));
MachVtbl.ConsPutChar = PcConsPutChar;
MachVtbl.ConsKbHit = PcConsKbHit;
MachVtbl.ConsGetCh = PcConsGetCh;
return;
}
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 1;
}
/* Initialize resource descriptor */
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 1;
{
if (!Pc98ArchTest())
{
+ ERR("This is not a supported PC98!\n");
+
+ /* Disable and halt the CPU */
_disable();
__halt();
}
/* Setup vtbl */
- RtlZeroMemory(&MachVtbl, sizeof(MACHVTBL));
+ RtlZeroMemory(&MachVtbl, sizeof(MachVtbl));
MachVtbl.ConsPutChar = Pc98ConsPutChar;
MachVtbl.ConsKbHit = Pc98ConsKbHit;
MachVtbl.ConsGetCh = Pc98ConsGetCh;
return NULL;
}
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 1;
}
/* Initialize resource descriptor */
- memset(PartialResourceList, 0, Size);
+ RtlZeroMemory(PartialResourceList, Size);
PartialResourceList->Version = 1;
PartialResourceList->Revision = 1;
PartialResourceList->Count = 0;
PCI_TYPE1_CFG_BITS PciCfg1;
ULONG PciId;
- memset(&MachVtbl, 0, sizeof(MACHVTBL));
-
/* Check for Xbox by identifying device at PCI 0:0:0, if it's
* 0x10DE/0x02A5 then we're running on an Xbox */
PciId = READ_PORT_ULONG((PULONG)PCI_TYPE1_DATA_PORT);
if (PciId != 0x02A510DE)
{
- ERR("This is not original Xbox!\n");
+ ERR("This is not an original Xbox!\n");
/* Disable and halt the CPU */
_disable();
__halt();
- while (TRUE);
+ while (TRUE)
+ NOTHING;
}
/* Set LEDs to red before anything is initialized */
XboxSetLED("rrrr");
/* Setup vtbl */
+ RtlZeroMemory(&MachVtbl, sizeof(MachVtbl));
MachVtbl.ConsPutChar = XboxConsPutChar;
MachVtbl.ConsKbHit = XboxConsKbHit;
MachVtbl.ConsGetCh = XboxConsGetCh;
return FALSE;
}
- memset(PartitionTableEntry, 0, sizeof(PARTITION_TABLE_ENTRY));
+ RtlZeroMemory(PartitionTableEntry, sizeof(PARTITION_TABLE_ENTRY));
PartitionTableEntry->SystemIndicator = XboxPartitions[PartitionNumber - 1].SystemIndicator;
PartitionTableEntry->SectorCountBeforePartition = XboxPartitions[PartitionNumber - 1].SectorCountBeforePartition;
PartitionTableEntry->PartitionSectorCount = XboxPartitions[PartitionNumber - 1].PartitionSectorCount;
static inline void init_path(const struct btrfs_super_block *sb, struct btrfs_path *path)
{
- memset(path, 0, sizeof(*path));
+ RtlZeroMemory(path, sizeof(*path));
path->tree_buf = FrLdrTempAlloc(sb->nodesize, TAG_BTRFS_NODE);
}