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.

119 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. patchstrc.h
  5. Abstract:
  6. This include file contains structures describing the patchable
  7. fragments.
  8. Author:
  9. Dave Hastings (daveh) creation-date 24-Jun-1995
  10. Revision History:
  11. --*/
  12. #ifndef _PATCHSTRC_H_
  13. #define _PATCHSTRC_H_
  14. ULONG
  15. PlaceJxx(
  16. IN PULONG CodeLocation,
  17. #if _ALPHA_
  18. IN ULONG CurrentECU,
  19. #endif
  20. IN PINSTRUCTION Instruction
  21. );
  22. ULONG
  23. PlaceJxxSlow(
  24. IN PULONG CodeLocation,
  25. #if _ALPHA_
  26. IN ULONG CurrentECU,
  27. #endif
  28. IN PINSTRUCTION Instruction
  29. );
  30. ULONG
  31. PlaceJxxFwd(
  32. IN PULONG CodeLocation,
  33. #if _ALPHA_
  34. IN ULONG CurrentECU,
  35. #endif
  36. IN PINSTRUCTION Instruction
  37. );
  38. ULONG
  39. PlaceJmpDirect(
  40. IN PULONG CodeLocation,
  41. #if _ALPHA_
  42. IN ULONG CurrentECU,
  43. #endif
  44. IN PINSTRUCTION Instruction
  45. );
  46. ULONG
  47. PlaceJmpDirectSlow(
  48. IN PULONG CodeLocation,
  49. #if _ALPHA_
  50. IN ULONG CurrentECU,
  51. #endif
  52. IN PINSTRUCTION Instruction
  53. );
  54. ULONG
  55. PlaceJmpFwdDirect(
  56. IN PULONG CodeLocation,
  57. #if _ALPHA_
  58. IN ULONG CurrentECU,
  59. #endif
  60. IN PINSTRUCTION Instruction
  61. );
  62. ULONG
  63. PlaceJmpfDirect(
  64. IN PULONG CodeLocation,
  65. #if _ALPHA_
  66. IN ULONG CurrentECU,
  67. #endif
  68. IN PINSTRUCTION Instruction
  69. );
  70. ULONG
  71. PlaceCallDirect(
  72. IN PULONG CodeLocation,
  73. #if _ALPHA_
  74. IN ULONG CurrentECU,
  75. #endif
  76. IN PINSTRUCTION Instruction
  77. );
  78. ULONG
  79. PlaceCallfDirect(
  80. IN PULONG CodeLocation,
  81. #if _ALPHA_
  82. IN ULONG CurrentECU,
  83. #endif
  84. IN PINSTRUCTION Instruction
  85. );
  86. ULONG
  87. PlaceNop(
  88. IN PULONG CodeLocation,
  89. #if _ALPHA_
  90. IN ULONG CurrentECU,
  91. #endif
  92. IN PINSTRUCTION Instruction
  93. );
  94. extern ULONG EndTranslatedCode[];
  95. extern CONST PVOID FragmentArray[];
  96. #endif