Looks like you’re talking about mapping the \Device\PhysicalMemory section… In this case, trying to map the same physical range with different caching attributes is illegal (ZwMapViewOfSection docs mention this). Depending on the OS version and other details, you can get a failure, a silent processor corruption, or the OS may simply ignore the conflicting attribute (this is likely what happened in your second example below).
Thanks,
Pavel
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Calin Iaru
Sent: Friday, August 12, 2011 4:56 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Signed Drivers throws unsigned driver warning in Windows 7
I have a different experience:
ZwMapViewOfSection(address, PAGE_READWRITE) and ZwMapViewOfSection(sameAddress, PAGE_READWRITE|PAGE_WRITECOMBINE) fails on Vista x86 and passes on 7 x64. It turns out that I had a problem in the lower driver.
Similarly, there was a problem on 7 which passed on every other: MmMapIoSpace(MmNonCached) + ZwMapViewOfSection(WRITECOMBINE) would generate a performance hit on 7.
It is useful to test, detect and fix on different versions.
From: “xxxxx@smiths-medical.commailto:xxxxx” >
To: Windows System Software Devs Interest List >
Sent: Friday, August 12, 2011 1:11 PM
Subject: RE:[ntdev] Signed Drivers throws unsigned driver warning in Windows 7
We’re having the same issue. Our USB driver was WHQL tested for Windows 7, the catalog file was generated for XP, Server 2003, Server 2008, Vista and Windows 7.
Trying to install on Server 2003, it says the driver was authenticated for another OS.
I can’t believe drivers have to be WHQL tested for every specific Windows OS, 32 and 64 bit.
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx>