Windows NT 4.0 source code leak
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.

70 lines
1.5 KiB

4 years ago
  1. // TITLE("Query Implemention and Revision Information")
  2. //++
  3. //
  4. // Copyright (c) 1993 Microsoft Corporation
  5. //
  6. // Module Name:
  7. //
  8. // query.s
  9. //
  10. // Abstract:
  11. //
  12. // This module implements code to query the processor and floating
  13. // coprocessor implementation and revsion information.
  14. //
  15. // Author:
  16. //
  17. // David N. Cutler (davec) 22-Jun-1993
  18. //
  19. // Environment:
  20. //
  21. // User mode.
  22. //
  23. // Revision History:
  24. //
  25. //--
  26. #include "ksmips.h"
  27. SBTTL("Query Implementation and Revision")
  28. //++
  29. //
  30. // VOID
  31. // BlQueryImplementationAndRevision (
  32. // OUT PULONG ProcessorId,
  33. // OUT PULONG FloatingId
  34. // )
  35. //
  36. // Routine Description:
  37. //
  38. // This function returns the implementation and revision of the host
  39. // processor and floating coprocessor.
  40. //
  41. // Arguments:
  42. //
  43. // ProcessorId (a0) - Supplies a pointer to a variable that receives the
  44. // processor information.
  45. //
  46. // Floatingid (a1) - Supplies a pointer to a variable that receives the
  47. // floating coprocessor information.
  48. //
  49. // Return Value:
  50. //
  51. // None.
  52. //
  53. //--
  54. LEAF_ENTRY(BlQueryImplementationAndRevision)
  55. .set noreorder
  56. .set noat
  57. mfc0 t0,prid // get implementation and revision
  58. cfc1 t1,fsrid // get implementation and revision
  59. sw t0,0(a0) //
  60. sw t1,0(a1) //
  61. .set at
  62. .set reorder
  63. j ra // return
  64. .end BlQueryImplementationAndRevision