mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 23:46:50 +00:00
fix warnings with -Wsign-compare for MP builds
svn path=/trunk/; revision=16443
This commit is contained in:
parent
5979e80363
commit
c75115824f
|
@ -63,14 +63,14 @@ ShutdownThreadMain(PVOID Context)
|
||||||
HalReturnToFirmware (FIRMWARE_OFF);
|
HalReturnToFirmware (FIRMWARE_OFF);
|
||||||
#else
|
#else
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
ULONG i;
|
LONG i;
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
|
|
||||||
OldIrql = KeRaiseIrqlToDpcLevel();
|
OldIrql = KeRaiseIrqlToDpcLevel();
|
||||||
/* Halt all other processors */
|
/* Halt all other processors */
|
||||||
for (i = 0; i < KeNumberProcessors; i++)
|
for (i = 0; i < KeNumberProcessors; i++)
|
||||||
{
|
{
|
||||||
if (i != KeGetCurrentProcessorNumber())
|
if (i != (LONG)KeGetCurrentProcessorNumber())
|
||||||
{
|
{
|
||||||
PKDPC Dpc = ExAllocatePool(NonPagedPool, sizeof(KDPC));
|
PKDPC Dpc = ExAllocatePool(NonPagedPool, sizeof(KDPC));
|
||||||
if (Dpc == NULL)
|
if (Dpc == NULL)
|
||||||
|
|
|
@ -420,11 +420,11 @@ KeBugCheckWithTf(ULONG BugCheckCode,
|
||||||
if (!InterlockedDecrement((PLONG)&KeBugCheckCount))
|
if (!InterlockedDecrement((PLONG)&KeBugCheckCount))
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
ULONG i;
|
LONG i;
|
||||||
/* Freeze the other CPUs */
|
/* Freeze the other CPUs */
|
||||||
for (i = 0; i < KeNumberProcessors; i++)
|
for (i = 0; i < KeNumberProcessors; i++)
|
||||||
{
|
{
|
||||||
if (i != KeGetCurrentProcessorNumber())
|
if (i != (LONG)KeGetCurrentProcessorNumber())
|
||||||
{
|
{
|
||||||
/* Send the IPI and give them one second to catch up */
|
/* Send the IPI and give them one second to catch up */
|
||||||
KiIpiSendRequest(1 << i, IPI_REQUEST_FREEZE);
|
KiIpiSendRequest(1 << i, IPI_REQUEST_FREEZE);
|
||||||
|
|
Loading…
Reference in a new issue