Microsoft KB Archive/262431

= INFO: On a MIPS Processor You Can Enable the DE Bit in the OEMInit Function =

Article ID: 262431

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Encarta Reference Suite 2001

-



This article was previously published under Q262431



SUMMARY
On a MIPS processor, a kernel variable, basePSR, is used immediately upon return from the OEMInit function to load the CP0 register. The diagnostic bit (DE) is not altered from the basePSR value set during boot, so the DE bit set into basePSR in the OEM Adaptation Layer (OAL) OEMInit function of the will remain in effect.



MORE INFORMATION
To implement a change to the basePSR value, include the following code in your OEMInit function:
 * 1) ifdef _MIPS_
 * 2) define pBasePSR       ((DWORD*) (KPAGE_BASE+0x0890))

*pBasePSR = 0x10000; The CP0 register is reloaded from the basePSR value often by the Windows CE kernel. Any change to the DE bit directly in the CP0 register, such as in startup code, will not remain in effect.
 * 1) endif

The DE bit must be set to disable parity check on platforms that do not support parity checking. If the bit is not set, a cache error exception may be generated.

Additional query words: OAL MIPS

Keywords: kbinfo KB262431

-

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

© Microsoft Corporation. All rights reserved.