Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. wowinfo.c
  5. Abstract:
  6. This module implements the routines to returns processor-specific information
  7. about the x86 emulation capability.
  8. Author:
  9. Samer Arafeh (samera) 14-Nov-2000
  10. Environment:
  11. Kernel Mode.
  12. Revision History:
  13. --*/
  14. #include "exp.h"
  15. NTSTATUS
  16. ExpGetSystemEmulationProcessorInformation (
  17. OUT PSYSTEM_PROCESSOR_INFORMATION ProcessorInformation
  18. )
  19. /*++
  20. Routine Description:
  21. Retreives the processor information of the emulation hardware.
  22. Arguments:
  23. ProcessorInformation - Pointer to receive the processor's emulation information.
  24. Return Value:
  25. NTSTATUS
  26. --*/
  27. {
  28. NTSTATUS NtStatus = STATUS_SUCCESS;
  29. //
  30. // Intel Pentium Family 6, Model 2, Stepping 12
  31. //
  32. try {
  33. ProcessorInformation->ProcessorArchitecture = PROCESSOR_ARCHITECTURE_INTEL;
  34. ProcessorInformation->ProcessorLevel = 5;
  35. ProcessorInformation->ProcessorRevision = 0x020c;
  36. ProcessorInformation->Reserved = 0;
  37. ProcessorInformation->ProcessorFeatureBits = KeFeatureBits;
  38. }
  39. except (EXCEPTION_EXECUTE_HANDLER) {
  40. NtStatus = GetExceptionCode ();
  41. }
  42. return NtStatus;
  43. }