- Fix a format specifier

[NTOSKRNL]
- Add a missing compiler memory barrier to KeIpiGenericCall
- Remove a pointless cast

svn path=/trunk/; revision=59147
This commit is contained in:
Timo Kreuzer
2013-06-02 18:01:00 +00:00
parent d313d838eb
commit e4cd39e255
2 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -417,7 +417,8 @@ LdrProcessRelocationBlockLongLong(
case IMAGE_REL_BASED_MIPS_JMPADDR:
default:
DPRINT1("Unknown/unsupported fixup type %hu.\n", Type);
DPRINT1("Address %x, Current %u, Count %u, *TypeOffset %x\n", Address, i, Count, SWAPW(*TypeOffset));
DPRINT1("Address %p, Current %u, Count %u, *TypeOffset %x\n",
(PVOID)Address, i, Count, SWAPW(*TypeOffset));
return (PIMAGE_BASE_RELOCATION)NULL;
}
+6 -2
View File
@@ -228,7 +228,11 @@ KeIpiGenericCall(IN PKIPI_BROADCAST_WORKER Function,
&Count);
/* Spin until the other processors are ready */
while ((volatile ULONG)Count != 1) YieldProcessor();
while (Count != 1)
{
YieldProcessor();
KeMemoryBarrierWithoutFence();
}
}
#endif
@@ -248,7 +252,7 @@ KeIpiGenericCall(IN PKIPI_BROADCAST_WORKER Function,
if (Affinity)
{
/* Sanity check */
ASSERT(Prcb == (volatile PKPRCB)KeGetCurrentPrcb());
ASSERT(Prcb == KeGetCurrentPrcb());
/* FIXME: TODO */
ASSERTMSG("Not yet implemented\n", FALSE);