From 4d7d1dfc958b215feb2d15273df32ac754cee676 Mon Sep 17 00:00:00 2001 From: ReactOS Portable Systems Group Date: Tue, 22 Jul 2008 06:04:06 +0000 Subject: [PATCH] - Easy there cowboy, just because you can write good code doesn't mean you shouldn't even try building it. - Fix x86 build failure, good thing everyone is probably asleep. svn path=/trunk/; revision=34658 --- reactos/ntoskrnl/ex/sysinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/ntoskrnl/ex/sysinfo.c b/reactos/ntoskrnl/ex/sysinfo.c index 54b9000aa23..c89f60a6c2a 100644 --- a/reactos/ntoskrnl/ex/sysinfo.c +++ b/reactos/ntoskrnl/ex/sysinfo.c @@ -1196,7 +1196,11 @@ QSI_DEF(SystemInterruptInformation) { Prcb = KiProcessorBlock[i]; Pcr = CONTAINING_RECORD(Prcb, KPCR, Prcb); +#ifdef _M_ARM // This code should probably be done differently sii->ContextSwitches = Pcr->ContextSwitches; +#else + sii->ContextSwitches = ((PKIPCR)Pcr)->ContextSwitches; +#endif sii->DpcCount = Prcb->DpcData[0].DpcCount; sii->DpcRate = Prcb->DpcRequestRate; sii->TimeIncrement = ti;