windows-nt/Source/XPSP1/NT/base/ntos/ex/ia64/wowinfo.c

72 lines
1.2 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 2000 Microsoft Corporation
Module Name:
wowinfo.c
Abstract:
This module implements the routines to returns processor-specific information
about the x86 emulation capability.
Author:
Samer Arafeh (samera) 14-Nov-2000
Environment:
Kernel Mode.
Revision History:
--*/
#include "exp.h"
NTSTATUS
ExpGetSystemEmulationProcessorInformation (
OUT PSYSTEM_PROCESSOR_INFORMATION ProcessorInformation
)
/*++
Routine Description:
Retreives the processor information of the emulation hardware.
Arguments:
ProcessorInformation - Pointer to receive the processor's emulation information.
Return Value:
NTSTATUS
--*/
{
NTSTATUS NtStatus = STATUS_SUCCESS;
//
// Intel Pentium Family 6, Model 2, Stepping 12
//
try {
ProcessorInformation->ProcessorArchitecture = PROCESSOR_ARCHITECTURE_INTEL;
ProcessorInformation->ProcessorLevel = 5;
ProcessorInformation->ProcessorRevision = 0x020c;
ProcessorInformation->Reserved = 0;
ProcessorInformation->ProcessorFeatureBits = KeFeatureBits;
}
except (EXCEPTION_EXECUTE_HANDLER) {
NtStatus = GetExceptionCode ();
}
return NtStatus;
}