Microsoft KB Archive/260057

= DOC: Hitachi SH4 Page Mapping Function for PCMCIA =

PSS ID Number: 260057

Article Last Modified on 10/2/2003

-

The information in this article applies to:


 * Microsoft Windows CE Platform Builder 2.11
 * Microsoft Windows CE Platform Builder 2.12

-



This article was previously published under Q260057



SUMMARY
The VirtualSetPageFlags function is not documented in the Windows CE Platform Builder books online. This function is specific to Hitachi SH4-based platforms, and supports extra page table bits for PC cards (PCMCIA).



MORE INFORMATION
The VirtualSetPageFlags function should only be called from the SH4-based platform PCMCIA driver. The prototype for this function, which is provided in the Oak\Inc\Pkfuncs.h header file, is as follows: BOOL VirtualSetPageFlags(LPVOID lpvAddress, DWORD cbSize, DWORD dwFlags, LPDWORD lpdwOldFlags);

The VirtualSetPageFlags function maps the values that are specified in the dwFlags parameter to the SH4 virtual page attribute flags. It sets the flags for pages in the range specified by the lpvAddress and cbSize parameters. These flags correspond to bits in the Page Table Entry Assistance (PTEA) register. The PCMCIA driver combines flags to map pages in the three PCMCIA memory spaces at 8- or 16-bit data path widths. The following flag values are defined:

Keywords: kbbug kbdocerr KB260057

Technology: kbAudDeveloper kbSDKSearch kbWinCESDK211 kbWinCESDK212 kbWinCESDKSearch kbWinCESearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.