Microsoft KB Archive/169584

From BetaArchive Wiki

BUG: Win95: ScsiPortGetDeviceBase Does Not Return Linear Address


The information in this article applies to:

  • Microsoft Win32 Device Driver Kit (DDK) Windows 95


Under Windows 95, when ScsiPortGetDeviceBase is called to obtain the address of memory window, an Invalid Page Fault or General Protection Fault may occur when this address is accessed via ScsiPortReadRegisterxxx or ScsiPortWriteRegisterxxx.


Under Windows 95, ScsiPortGetDeviceBase returns a memory address as a physical address not a linear address. Accessing this address as a linear address may result in Invalid Page Faults or General Protection Faults if the linear address and physical address are not the same. This condition is typically true if the physical address is above 1MB.


To work around this problem, use the VMM function _MapPhysToLinear to map the returned physical address to its linear address.


Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.


This problem would not typically be seen with legacy devices for two reasons:

  • Most legacy devices have memory window addresses below 1MB where the physical address and linear address are the same.
  • Most legacy devices can be accessed via I/O registers or memory windows with a preference toward the use of I/O registers.

Additional query words: diskmem win95

Keywords :
Issue type : kbbug
Technology : kbAudDeveloper kbWin95search kbWinDDKSearch kbWin32sSearch kbWin32DDK95 kbWin32DDKSearch

Last Reviewed: March 6, 1999
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.