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.

113 lines
2.5 KiB

  1. ;++
  2. ;
  3. ; Copyright (c) 1989 Microsoft Corporation
  4. ;
  5. ; Module Name:
  6. ;
  7. ; sysstubs.asm
  8. ;
  9. ; Abstract:
  10. ;
  11. ; This module implements the system service dispatch stub procedures.
  12. ;
  13. ; Author:
  14. ;
  15. ; Shie-Lin Tzong (shielint) 6-Feb-1990
  16. ;
  17. ; Environment:
  18. ;
  19. ; User or kernel mode.
  20. ;
  21. ; Revision History:
  22. ;
  23. ;--
  24. include ks386.inc
  25. include callconv.inc
  26. .386
  27. STUBS_BEGIN1 macro t
  28. TITLE t
  29. endm
  30. STUBS_BEGIN2 macro t
  31. endm
  32. STUBS_BEGIN3 macro t
  33. _TEXT SEGMENT DWORD PUBLIC 'CODE'
  34. endm
  35. STUBS_BEGIN4 macro t
  36. endm
  37. STUBS_BEGIN5 macro t
  38. align 4
  39. endm
  40. STUBS_BEGIN6 macro t
  41. endm
  42. STUBS_BEGIN7 macro t
  43. endm
  44. STUBS_BEGIN8 macro t
  45. endm
  46. STUBS_END macro t
  47. _TEXT ENDS
  48. end
  49. endm
  50. SYSSTUBS_ENTRY1 macro ServiceNumber, Name, NumArgs
  51. cPublicProc _&Name,NumArgs
  52. .FPO ( 0, NumArgs, 0, 0, 0, 0 )
  53. mov eax, ServiceNumber+3000h; (eax) = service number
  54. lea edx, [esp]+4 ; (edx) -> arguments
  55. call dword ptr fs:[TeWow32Reserved]
  56. stdRET _&Name
  57. stdENDP _&Name
  58. endm
  59. SYSSTUBS_ENTRY2 macro ServiceNumber, Name, NumArgs
  60. endm
  61. SYSSTUBS_ENTRY3 macro ServiceNumber, Name, NumArgs
  62. endm
  63. SYSSTUBS_ENTRY4 macro ServiceNumber, Name, NumArgs
  64. endm
  65. SYSSTUBS_ENTRY5 macro ServiceNumber, Name, NumArgs
  66. endm
  67. SYSSTUBS_ENTRY6 macro ServiceNumber, Name, NumArgs
  68. endm
  69. SYSSTUBS_ENTRY7 macro ServiceNumber, Name, NumArgs
  70. endm
  71. SYSSTUBS_ENTRY8 macro ServiceNumber, Name, NumArgs
  72. endm
  73. USRSTUBS_ENTRY1 macro ServiceNumber, Name, NumArgs
  74. local c
  75. cPublicProc _&Name, NumArgs
  76. .FPO ( 0, NumArgs, 0, 0, 0, 0 )
  77. mov eax, ServiceNumber+3000h; (eax) = service number
  78. lea edx, [esp]+4 ; (edx) -> arguments
  79. call dword ptr [fs:TeWow32Reserved]
  80. stdRET _&Name
  81. stdENDP _&Name
  82. endm
  83. USRSTUBS_ENTRY2 macro ServiceNumber, Name, NumArgs
  84. endm
  85. USRSTUBS_ENTRY3 macro ServiceNumber, Name, NumArgs
  86. endm
  87. USRSTUBS_ENTRY4 macro ServiceNumber, Name, NumArgs
  88. endm
  89. USRSTUBS_ENTRY5 macro ServiceNumber, Name, NumArgs
  90. endm
  91. USRSTUBS_ENTRY6 macro ServiceNumber, Name, NumArgs
  92. endm
  93. USRSTUBS_ENTRY7 macro ServiceNumber, Name, NumArgs
  94. endm
  95. USRSTUBS_ENTRY8 macro ServiceNumber, Name, NumArgs
  96. endm
  97. STUBS_BEGIN1 <"System Service Stub Procedures">
  98. STUBS_BEGIN2 <"System Service Stub Procedures">
  99. STUBS_BEGIN3 <"System Service Stub Procedures">
  100. STUBS_BEGIN4 <"System Service Stub Procedures">
  101. STUBS_BEGIN5 <"System Service Stub Procedures">
  102. STUBS_BEGIN6 <"System Service Stub Procedures">
  103. STUBS_BEGIN7 <"System Service Stub Procedures">
  104. STUBS_BEGIN8 <"System Service Stub Procedures">