RE: [ntdev] Re:Is there a way to know when MP kernel is being used ?Which HAL and Kernel are in use is stored somewhere in the system, since it knows which one to use on an upgrade. I don’t have an MP machine handy at the moment to try to locate where this is, and I’ve long since forgotten. I’d guess either somewhere in the registry or maybe an inf file.
Loren
----- Original Message -----
From: Michal Vodicka
To: Windows System Software Devs Interest List
Sent: Tuesday, April 13, 2004 11:39 AM
Subject: RE: [ntdev] Re:Is there a way to know when MP kernel is being used ?
You can hardly use checked build on systems which aren’t under your control…
As for original problem, I would check something which is different between MP and UP builds. What about spinlock implementation? Code should differ although I can’t check it now because don’t have UP binaries. I guess KeAcquireSpinLockAtDpcLevel could be simple ret at UP. Note tools as Driver Verifier and Bounds Checker can complicate it and checking should be done carefully. Considering OS version and SP, of course.
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http:://www.upek.com]
From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Don Burn[SMTP:xxxxx@acm.org]
Reply To: Windows System Software Devs Interest List
Sent: Tuesday, April 13, 2004 3:04 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Re:Is there a way to know when MP kernel is being used ?
So use a kernel check build for this phase, and then it will always be
consistant. Also you will benefit from the additional checks and
diagnostics of a checked kernel and hal.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
“Inaki Castillo” wrote in message
news:xxxxx@ntdev…
> Well, I expected this question back.
>
> The reason I need this is that when in DBG mode I check some parameters in
> a structure within operating system.
> I do this to assert that certain condition is met with other data I have.
> This is useful in the testing phase to check everything is okay.
>
> It happens that structure has different shape when you are using MP
kernel.
>
> When we are testing here we deploy a debug version for testing that is
> tested in many different machines without my control.
> In order to check my DBG sanity conditions I need to know when a MP kernel
> is being used dynamically.
>
> The problem I have found is that in some machines that do have
> multiprocessor, testers use the flag /ONECPU from time to time to simulate
> one cpu machines.
> When this happens I see one cpu is being used while actually it is a MP
> machine that is using only one cpu.
>
> This has nothing to do with release versions.
>
> Thanks for your answer.
> Inaki.
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@earthlink.net
To unsubscribe send a blank email to xxxxx@lists.osr.com