Leaked source code of windows server 2003
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.

250 lines
4.6 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. psldt.c
  5. Abstract:
  6. This module contains AMD64 stubs for the process and thread ldt support.
  7. Author:
  8. David N. Cutler (davec) 13-Oct-2000
  9. --*/
  10. #include "psp.h"
  11. NTSTATUS
  12. PspQueryLdtInformation (
  13. IN PEPROCESS Process,
  14. OUT PVOID LdtInformation,
  15. IN ULONG LdtInformationLength,
  16. OUT PULONG ReturnLength
  17. )
  18. /*++
  19. Routine Description:
  20. This function is not implemented on AMD64.
  21. Arguments:
  22. Process - Supplies a pointer to a executive process object.
  23. LdtInformation - Supplies a pointer to the information buffer.
  24. LdtInformationLength - Supplies the length of the information buffer.
  25. ReturnLength - Supplies a pointer to a variable that receives the number
  26. of bytes returned in the information buffer.
  27. Return Value:
  28. STATUS_NOT_IMPLEMENTED
  29. --*/
  30. {
  31. UNREFERENCED_PARAMETER(Process);
  32. UNREFERENCED_PARAMETER(LdtInformation);
  33. UNREFERENCED_PARAMETER(LdtInformationLength);
  34. UNREFERENCED_PARAMETER(ReturnLength);
  35. return STATUS_NOT_IMPLEMENTED;
  36. }
  37. NTSTATUS
  38. PspSetLdtSize(
  39. IN PEPROCESS Process,
  40. IN PVOID LdtSize,
  41. IN ULONG LdtSizeLength
  42. )
  43. /*++
  44. Routine Description:
  45. This function is not implemented on AMD64.
  46. Arguments:
  47. Process -- Supplies a pointer to an executive process object.
  48. LdtSize -- Supplies a pointer to the LDT size infomration.
  49. LdtSizeLength - Supplies the length of the LDT size information.
  50. Return Value:
  51. STATUS_NOT_IMPLEMENTED
  52. --*/
  53. {
  54. UNREFERENCED_PARAMETER(Process);
  55. UNREFERENCED_PARAMETER(LdtSize);
  56. UNREFERENCED_PARAMETER(LdtSizeLength);
  57. return STATUS_NOT_IMPLEMENTED;
  58. }
  59. NTSTATUS
  60. PspSetLdtInformation(
  61. IN PEPROCESS Process,
  62. IN PVOID LdtInformation,
  63. IN ULONG LdtInformationLength
  64. )
  65. /*++
  66. Routine Description:
  67. This function is not implemented on AMD64.
  68. Arguments:
  69. Process -- Supplies a pointer to an executive process object.
  70. LdtInformation -- Supplies a pointer to the information buffer.
  71. LdtInformationLength -- Supplies the length of the information buffer.
  72. Return Value:
  73. STATUS_NOT_IMPLEMENTED
  74. --*/
  75. {
  76. UNREFERENCED_PARAMETER(Process);
  77. UNREFERENCED_PARAMETER(LdtInformation);
  78. UNREFERENCED_PARAMETER(LdtInformationLength);
  79. return STATUS_NOT_IMPLEMENTED;
  80. }
  81. NTSTATUS
  82. PspQueryDescriptorThread (
  83. PETHREAD Thread,
  84. PVOID ThreadInformation,
  85. ULONG ThreadInformationLength,
  86. PULONG ReturnLength
  87. )
  88. /*++
  89. Routine Description:
  90. This function is not implemented on AMD64.
  91. Arguments:
  92. Thread - Supplies a pointer to an executive thread object.
  93. ThreadInformation - Supplies a pointer to the thread descriptor
  94. information.
  95. ThreadInformationLength - Supplies the length of the thread descriptor
  96. information.
  97. ReturnLength - Supplies a pointer to a variable that receives the number
  98. of bytes returned in the descriptor information buffer.
  99. Return Value:
  100. STATUS_NOT_IMPLEMENTED
  101. --*/
  102. {
  103. UNREFERENCED_PARAMETER(Thread);
  104. UNREFERENCED_PARAMETER(ThreadInformation);
  105. UNREFERENCED_PARAMETER(ThreadInformationLength);
  106. UNREFERENCED_PARAMETER(ReturnLength);
  107. return STATUS_NOT_IMPLEMENTED;
  108. }
  109. VOID
  110. PspDeleteLdt(
  111. IN PEPROCESS Process
  112. )
  113. /*++
  114. Routine Description:
  115. This function is not implemented on AMD64.
  116. Arguments:
  117. Process -- Supplies a pointer to an executive process object.
  118. Return Value:
  119. None.
  120. --*/
  121. {
  122. UNREFERENCED_PARAMETER(Process);
  123. return;
  124. }
  125. NTSTATUS
  126. NtSetLdtEntries(
  127. IN ULONG Selector0,
  128. IN ULONG Entry0Low,
  129. IN ULONG Entry0Hi,
  130. IN ULONG Selector1,
  131. IN ULONG Entry1Low,
  132. IN ULONG Entry1High
  133. )
  134. /*++
  135. Routine Description:
  136. This function is not implemented on AMD64.
  137. Arguments:
  138. Selector0 - Supplies the number of the first descriptor to set.
  139. Entry0Low - Supplies the low 32 bits of the descriptor.
  140. Entry0Hi - Supplies the high 32 bits of the descriptor.
  141. Selector1 - Supplies the number of the last descriptor to set.
  142. Entry1Low - Supplies the low 32 bits of the descriptor.
  143. Entry1Hi - Supplies the high 32 bits of the descriptor.
  144. Return Value:
  145. None.
  146. --*/
  147. {
  148. UNREFERENCED_PARAMETER(Selector0);
  149. UNREFERENCED_PARAMETER(Entry0Low);
  150. UNREFERENCED_PARAMETER(Entry0Hi);
  151. UNREFERENCED_PARAMETER(Selector1);
  152. UNREFERENCED_PARAMETER(Entry1Low);
  153. UNREFERENCED_PARAMETER(Entry1High);
  154. return STATUS_NOT_IMPLEMENTED;
  155. }